Operating System - HP-UX
1753973 Members
7856 Online
108811 Solutions
New Discussion юеВ

/var/spool/cron/tmp filling /var

 
ricky_1
Frequent Advisor

/var/spool/cron/tmp filling /var

Hi ALL,

Can any one tell me if /var/spool/cron/tmp files can be truncated?.will it affect the at jobs?

Thanxs and rgds,
Believe in Yourself!!
2 REPLIES 2
S.K. Chan
Honored Contributor

Re: /var/spool/cron/tmp filling /var

The files in here are typically files like "croutXXXXXXX" as a result of cron jobs that are completed and it's output redirected to these files. It is recommended that your cron entries redirect it's stdout to >/dev/null 2>&1 (if possible) to avoid those files being created. To answer your question, yes those files can be truncated, in fact "older" (from the timestamp) files can be deleted to free up the space in /var.
Animesh Chakraborty
Honored Contributor

Re: /var/spool/cron/tmp filling /var

Hi,
You can see the contents of those files and delete all the old files.
I think they are just error logs of the scripts which are runnung via cron.
Did you take a backup?