LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Strange output log of crontab (https://www.linuxquestions.org/questions/linux-newbie-8/strange-output-log-of-crontab-645753/)

kuangchen 05-30-2008 12:44 AM

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?

unSpawn 05-30-2008 04:13 AM

Quote:

Originally Posted by kuangchen (Post 3168941)
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 (Post 3168941)
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."


All times are GMT -5. The time now is 10:58 AM.