Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-07-2006, 05:19 AM   #1
LQ Newbie
Registered: Jun 2005
Location: India
Posts: 7

Rep: Reputation: 0
crontab problem

I'm giving crontab syntax as follows..

20 15 * * * date

but when the time is come nothing is displayed.
Is there any mistakes.
Please tell me.
i want the output of the date command on the screen..

Old 01-07-2006, 05:48 AM   #2
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
To cut a long story short, cron won't display results of the commands it runs to the standard out (i.e. screen). Instead it mails them to the owner of the crontab that produced the output.

You can write a small script that specifically redirects the "date" command result to standard out and have cron run that script, instead. That should work.

$man cron
$man bash


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crontab Problem smus Linux - Newbie 4 12-10-2005 09:52 AM
crontab problem pdrobe Red Hat 1 02-05-2005 04:19 PM
Problem with crontab PierrePau Linux - Software 3 06-28-2004 03:34 PM
crontab problem BlackRabbit Linux - General 9 06-17-2004 08:38 AM
crontab problem zuessh Slackware 0 04-30-2003 10:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:44 AM.

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