Throw the output (Standard and error) from the CRON run to a log:

0 4 * * * root /FOLDER/SCRIPT 2>&1 >> /tmp/cronlog

let 'er rip and see what the log says... if you want the log to be new for 
each run (i.e. overwrite the last log) change the >> to a >



On Wed, 13 Aug 2003 08:45:22 -0500, Joshua Tschida <josh at tschidanet.com> 
wrote:

> Greetings.  I've written a bash script here for a Redhat 9 server that 
> uses smbclient to retrieve some log files from a Windows based web 
> server, then the script parses the log files with webalizer.  I added the 
> script to my /etc/crontab file, with proper notation, but it does not 
> run!  Is there anything with smbclient that might prevent it from running 
> in this fashion?  The script works fine when I run it manually...
>
> Here's what the smbclient line looks like in my script:
> /usr/bin/smbclient \\\\SERVERNAME\\SHARENAME -A  ../login_info -I 
> SERVERIPADDRESS -n MYCOMPNAME -c "cd httplog; prompt off; mget *.log"
>
> My crontab notation looks like this so it will run at 4am every day:
> 0 4 * * * root /FOLDER/SCRIPT
>
> I also have a similar script retrieving logs from a Linux server via FTP, 
> and that one works fine with the same crontab notation.
>
> thanks in advance for any assistance.
> -Josh
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list