I've got two find commands that work when executed from the command line, but don't work when added to an existing script that runs via Cron. The commands:
When I put these commands in their own script and run via Cron, it works correctly. I'm receiving no errors via root's email. I was wondering if anyone has experienced this problem and, if so, has a suggestion.
The logical answer would be look at the existing script - the problem lies within. Is there an if statement that is not letting the find commands run? (or some other statement) Can you get the two find commands to work from one script (not the 'existing' script) via cron?
Post the script - OS and version - and shell/language you are scripting in.
Yes, the commands work if I put them in a separate script and run it via Cron. Running in Korn shell--Sun Solaris 7. Here are the first several lines of the script:
-----------------------------------------------------------------------------------
#!/usr/bin/ksh
#
#
# Production DB Backup Script
#
# prod_online_backup
#