Results 1 to 10 of 10
Thread: var/spool/mail/root getting big
-
07-20-2002, 12:26 AM #1Junior Guru
- Join Date
- Jun 2001
- Posts
- 184
var/spool/mail/root getting big
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 ?
-
07-20-2002, 03:10 AM #2Disabled
- Join Date
- Nov 2001
- Location
- Canada
- Posts
- 1,963
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
-
07-20-2002, 03:21 AM #3Junior Guru
- Join Date
- Jun 2001
- Posts
- 184
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
-
07-20-2002, 10:13 AM #4WHT Addict
- Join Date
- Jun 2002
- Posts
- 146
It create a symlink to /dev/null
-
07-20-2002, 10:52 AM #5Junior Guru
- Join Date
- Jan 2002
- Posts
- 214
Wouldn't that cause all new data that goes into /var/spool/mail/root to be deleted?
Web-cp: an open source control panel: http://www.web-cp.net
-
07-20-2002, 11:12 AM #6Web Hosting Evangelist
- Join Date
- Nov 2000
- Posts
- 486
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,
-
07-20-2002, 11:48 AM #7Junior Guru
- Join Date
- Jun 2001
- Posts
- 184
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.
-
07-20-2002, 12:02 PM #8Web Hosting Evangelist
- Join Date
- Nov 2000
- Posts
- 486
/home/controlpanel/date.sh > /dev/null 2>&1
You are missing the >
-
07-20-2002, 12:07 PM #9Junior Guru
- Join Date
- Jan 2002
- Posts
- 214
The command you should use is:
wget http://yoururl.com/path/to/file > /dev/null
-
07-21-2002, 12:55 AM #10Junior Guru
- Join Date
- Jun 2001
- Posts
- 184
Originally posted by Starhost
/home/controlpanel/date.sh > /dev/null 2>&1
You are missing the >