I have an Ubuntu 10.04 OS, and if I do this on the terminal (it works):
$ ssh new_machine "find /tmp/test_*.csv -mtime +14 -exec rm '{}' \;"
But if I place it in a shell script, it does not work. I suspect it is related to the "*" wildcard. Any thoughts on doing this?