LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-15-2003, 01:38 PM   #1
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Rep: Reputation: 30
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
 
Old 08-15-2003, 01:41 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
How are you using cron?
 
Old 08-15-2003, 01:44 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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
 
Old 08-15-2003, 01:54 PM   #4
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Original Poster
Rep: Reputation: 30
cool, trying that right now
 
Old 08-15-2003, 01:55 PM   #5
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Original Poster
Rep: Reputation: 30
and here ist he crontab entry

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron output nelamvr6 Linux - Newbie 3 10-18-2005 07:11 PM
Can the output of cron daemon be sent via other smtp hamish Linux - Software 0 09-02-2005 08:28 AM
Cron output to a file Temujin_12 Linux - General 5 02-23-2005 01:52 PM
Can not send cron output to the screen tryingHarder Linux - Newbie 3 09-26-2004 10:11 PM
Understanding CRON output lhoff Linux - General 1 05-19-2003 01:17 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration