LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2008, 12:44 AM   #1
kuangchen
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
Strange output log of crontab


Hey, guys:
I was trying hard to set up crontab to get mails every 1 minute. My crontab file looks like this

Code:
 */1 * * * * /usr/bin/fetchmail -aK -m "/usr/bin/procmail -d %T "
Then I activated cron logging. Here is what I found appearing in the log file (i.e. /var/log/cron.log)

Code:
 May 29 22:33:01 Thinkpad-T61 /USR/SBIN/CRON[4390]: (kuangchen) CMD (/usr/bin/fetchmail -aK -m "/usr/bin/procmail -d )
My question is
* What does the %T mean in
Code:
/usr/bin/fetchmail -aK -m "/usr/bin/procmail -d %T "
* Why does it appear that the command is truncated, i.e, missing from %T?
 
Old 05-30-2008, 04:13 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by kuangchen View Post
What does the %T mean
In 'man fetchmail' at "-m " it says it's the local address procmail is told by fetchmail to deliver e-mail to. Next time maybe research before running something?


Quote:
Originally Posted by kuangchen View Post
Why does it appear that the command is truncated, i.e, missing from %T?
In 'man 5 crontab' it reads "Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input."

Last edited by unSpawn; 05-30-2008 at 04:15 AM. Reason: proper quoting
 
  


Reply

Tags
crontab



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
Strange Crontab problem(!?) monk5854 Linux - General 2 11-19-2007 08:24 AM
Directing xosd output to X display from crontab BWebb Linux - General 3 06-30-2005 01:09 PM
Help with crontab log error magyartoth Linux - General 5 12-21-2004 01:05 AM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
Strange xdm log in screen and can't log in with it? Erik Plaggenmar Linux - Software 4 06-05-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 PM.

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