Welcome to the most active Linux Forum on the web.
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 02-18-2005, 04:57 AM   #1
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Rep: Reputation: 15
cron job questions....

hi there:

just learned about cron stuff and am trying to set up cronjob that retrives my emails every 10mins by adding the following fo my crontab:

*/10 * * * * fetchmail -a -m "/usr/bin/procmail -d %T"

as far as i can tell, the fetchmail command was executed ok, but i am not gettig any emails. and when i looked into "/var/log/everything/current", i saw"

Feb 18 11:50:01 [/usr/sbin/cron] (sonicvariable2) CMD (fetchmail -a -m "/usr/bin/procmail-d )
Feb 18 11:50:01 [sSMTP] Sent mail for (221 2.0.0 Serv
ice closing transmission channel)

where the fetchmail command was cut off after the -d part, could this be why? and if yes, how could i resolve this? and also is it correct the the sSMTP says sent mail for root?

many thanks

Old 02-18-2005, 05:51 AM   #2
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
ummm, i think i have found te problem:

from the man page:

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 inpt.




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
cron job sanjith11 Linux - General 5 07-14-2004 01:06 PM
Cron job rajasekarvr Linux - General 4 05-03-2004 05:35 PM
cron job ? johnyy Linux - Software 3 12-10-2003 06:00 PM
cron job thesnaggle Linux - Newbie 1 09-19-2003 10:47 AM
Cron job T-Rex Linux - Newbie 1 09-26-2001 11:28 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:35 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
Open Source Consulting | Domain Registration