Re: CRON Script not working right.

2007-01-17 Thread Derek Ragona
Always use full pathnames to commands in cron scripts. Change the lines to include the full paths for chown and chmod. -Derek At 09:31 PM 1/16/2007, Don O'Neil wrote: Anybody have any clues why a shell script run from root's CRON would act differently then when run directly from the

CRON Script not working right.

2007-01-16 Thread Don O'Neil
Anybody have any clues why a shell script run from root's CRON would act differently then when run directly from the command line? Specifically, I have a script that looks for files on a NFS mount point and copies them across and changes the ownership/perms. Here's the gist of the script:

Re: CRON Script not working right.

2007-01-16 Thread Bill Campbell
On Tue, Jan 16, 2007, Don O'Neil wrote: Anybody have any clues why a shell script run from root's CRON would act differently then when run directly from the command line? Most often this is because the environment in the cron job is different, either missing variables or having variables that