This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

crontab emailing

General support and discussion of Eggdrop bots.
Post Reply
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

crontab emailing

Post by NewzUK »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Re: crontab emailing

Post by demond »

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
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: Select all

 tag when posting logs, code
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

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
Post Reply