Results 1 to 10 of 10
  1. #1
    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 ?

  2. #2
    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

  3. #3
    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
    What does ln -s /dev/null /var/spool/mail/root do? Can you explain briefly so i know what i am doing in future.

  4. #4
    Join Date
    Jun 2002
    Posts
    146
    It create a symlink to /dev/null

  5. #5
    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

  6. #6
    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,

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

  8. #8
    /home/controlpanel/date.sh > /dev/null 2>&1

    You are missing the >

  9. #9
    The command you should use is:
    wget http://yoururl.com/path/to/file > /dev/null

  10. #10
    Join Date
    Jun 2001
    Posts
    184
    Originally posted by Starhost
    /home/controlpanel/date.sh > /dev/null 2>&1

    You are missing the >
    Thanks alot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •