LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cron output? (https://www.linuxquestions.org/questions/linux-general-1/cron-output-82317/)

sk8guitar 08-15-2003 01:38 PM

cron output?
 
hi, i have a perl script that rips an audio stream and i wanted to cron this script for every hour. so just to test it out i tried running it every minute, but the output that the script was supposed to do didn't seem to be happening (it creates a folder witht the current day and rips the stream and names it by hour or minute in this case). does cron somehow supress this output or am i just using cron wrong? the script works perfect when called from command line

Crashed_Again 08-15-2003 01:41 PM

How are you using cron?

david_ross 08-15-2003 01:44 PM

When crete your job write it like this:
/path/to/myscript 2>&1 > /var/log/myscript.log

This logs stderr and stdout to the log file /var/log/myscript.log

sk8guitar 08-15-2003 01:54 PM

cool, trying that right now

sk8guitar 08-15-2003 01:55 PM

and here ist he crontab entry

0-59 * * * * ~/programs/perl/stream_ripper/stream_ripper.pl 2>&1 > /var/log/stream_rip.log


All times are GMT -5. The time now is 01:46 PM.