LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-07-2006, 04:19 AM   #1
sunnyanthony
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..

regards..
Sunny
 
Old 01-07-2006, 04:48 AM   #2
Notwerk
Member
 
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
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration