Re: Please Help Fast! /VAR is Full !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



14 04 * * * PROGRAMNAME > /dev/null 2>&1

Add  '> /dev/null 2>&1' to the end of the cron line.

Craig Daters wrote:
You can as you say, 'rm *' to get rid of everything, but you might lose some
ligitamate email if you did. Can you move the files elsewhere? For the time
being? If you're not worried as you say, then go for it.

You may be able to edit the cron config file to turn off the automatic email
but am unsure... Like change 'MAILTO=root' to 'MAILTO=/dev/null' or
something like that, but I would only do this as an extreme temporary
measure.

On 10/29/03 10:47 AM, "Staven Bruce" <Staven.Bruce@xxxxxxxxxxxxx> spoke
thusly:

  
I am running Red Hat 7.3 and I came in this morning and found /var was at
100%. A quick  'du /var' showed that my /var/spool/mqueue directory as at
145MB ! Usually my /var directory is at 46% on my machine, and I believe
that this is all the result of a cron job I started yesterday that runs
hourly. 

I really need to find out how I can clear the mqueue. The device is full
according to the system, so I can't use 'sendmail -q'. I don't care if I
loose all the messages in the que, they don't contain anything important and
there are no other users on the machine besides myself. Can I 'rm * ' all
the files in /var/spool/mqueue? I just need to get them out of there!

Also, if someone can tell me how to turn off the automatic e-mail from cron
I would appreciate it!

Thanks,

Staven


    


Craig D.

  

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux