Web Hosting Talk







View Full Version : var/spool/mail/root getting big


kaz
07-20-2002, 12:26 AM
Hi,

my var/spool/mail/root is getting big and there's this netstatus program i use to check my server service, will always send a new mail to my var/spool/mail/root . How do i reduce var/spool/mail/root ?

clocker1996
07-20-2002, 03:10 AM
i assume 'root' is a file

so do cd /var/spool/mail
mv root root.old
ln -s /dev/null /var/spool/mail/root

should work

kaz
07-20-2002, 03:21 AM
Originally posted by clocker1996
i assume 'root' is a file

so do cd /var/spool/mail
mv root root.old
ln -s /dev/null /var/spool/mail/root

should work

What does ln -s /dev/null /var/spool/mail/root do? Can you explain briefly so i know what i am doing in future.

a:\
07-20-2002, 10:13 AM
It create a symlink to /dev/null

Gyrbo
07-20-2002, 10:52 AM
Wouldn't that cause all new data that goes into /var/spool/mail/root to be deleted?

Starhost
07-20-2002, 11:12 AM
Yes it will,

Why just don't delete some mails? Or if the service checker is set up with a cron job, tell cron to NOT email you the output,

kaz
07-20-2002, 11:48 AM
I was getting this command in my cron.

wget http://www.domain.com/status/crontasks/serv_cron.php /dev/null 2>&1

in the mail, i got this.

QUOTE]HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K ->

04:20:06 (0.00 B/s) - `serv_cron.php.49' saved [0]

/dev/null: Invalid host name.
[QUOTE]

/dev/null: Invalid host name <---this one is making is send a mail to my root mail.

Starhost
07-20-2002, 12:02 PM
/home/controlpanel/date.sh > /dev/null 2>&1

You are missing the >

Gyrbo
07-20-2002, 12:07 PM
The command you should use is:
wget http://yoururl.com/path/to/file > /dev/null

kaz
07-21-2002, 12:55 AM
Originally posted by Starhost
/home/controlpanel/date.sh > /dev/null 2>&1

You are missing the >

Thanks alot.