Re: cron

Jerry K <[email protected]> Mon, 27 Feb 2012 13:14:00 -0600
Newsgroups gmane.comp.macosx.admin
Message-ID <[email protected]>
I (generally) agree with Larry.

You state that you are using full paths, but I don't see any full paths on any
of the binaries you are running, i.e. ssh, xargs, etc.

I would do full paths on your binaries OR add a PATH line in your script OR both.

Jerry




On 02/27/12 10:10 AM, Lawrence Sica wrote:
> Well you are not capturing stderr in your file.  You won't see any errors as a result.  Try running it to capture stdout and stderr.  Also I recommend using full paths to commands in a cron run script since the environment is not the same as when you run it from the command line.
> 
> --Larry
> 
> 
> On Feb 27, 2012, at 10:56 AM, János Löbb <[email protected]> wrote:
> 
>> Hi Jerry,
>>
>> When I execute the script on the command prompt, it works like charm:
>>
>> <nyissz>
>> bml0041:shell_script janos$ ./del_from_sequoia.ksh 
>> 2012_02_23_15.log                                                                                                         100%   75KB  74.9KB/s   00:00    
>> 2012_02_23_16.log