| View previous topic :: View next topic |
| Author |
Message |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Wed Aug 23, 2006 8:31 pm Post subject: crontab emailing |
|
|
Hi - I recently re-set up a crontab for a bot, but now it appears to be emailing the shell everytime the crontab checks to see if the bot is running. This didn't used to happen - any ideas?
Also, is there a way to mass-delete the emails on the shell as there are now hundreds of them!
Thanks! _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Aug 23, 2006 10:41 pm Post subject: Re: crontab emailing |
|
|
| NewzNZ wrote: | | Hi - I recently re-set up a crontab for a bot, but now it appears to be emailing the shell everytime the crontab checks to see if the bot is running. This didn't used to happen - any ideas? |
check if you still have your crontab command(s) output suppressed (>/dev/null 2>&1); if not, that would be the reason why the cron daemon is emailing you with the output
| Quote: |
Also, is there a way to mass-delete the emails on the shell as there are now hundreds of them!
Thanks! |
try the mail utility, then enter d1-300 to erase messages #1 to 300 (that probably won't work if your system uses mail agent other than sendmail) _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Wed Aug 30, 2006 6:53 pm Post subject: |
|
|
thanks demond for the help - all fixed now. (apologies for the late reply)
=) _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|
| Back to top |
|
 |
|