- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron temporary files in /var/tmp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 05:54 AM
тАО01-14-2002 05:54 AM
Her are the date time of the files in /var/tmp:
-rw------- 1 daemon other 0 Jan 14 05:25 baaa26090
-rw------- 1 daemon other 0 Jan 14 05:25 aaaa26088
-rw------- 1 daemon other 0 Jan 14 04:54 baaa23039
-rw------- 1 daemon other 0 Jan 14 04:54 aaaa23037
-rw------- 1 daemon other 0 Jan 14 04:19 baab19173
-rw------- 1 daemon other 0 Jan 14 04:19 aaaa19171
-rw------- 1 daemon other 0
And here are the date time stamps of the emails from your id:
N 30 root Mon Jan 14 04:19 35/1131 cron
N 31 root Mon Jan 14 04:54 35/1131 cron
N 32 root Mon Jan 14 05:25 35/1131 cron
Any ideas of how to avoid these left over files.
I would rather cron clean them up than have another cron removed files in this directory older than say 7 days!
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 06:31 AM
тАО01-14-2002 06:31 AM
Re: cron temporary files in /var/tmp
Cron writes it's log files to /var/spool/cron/tmp
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 06:37 AM
тАО01-14-2002 06:37 AM
Re: cron temporary files in /var/tmp
This may help you:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=e908531200dec4f06c/screen=ckiDisplayDocument?docId=200000048595125
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:22 AM
тАО01-14-2002 07:22 AM
SolutionWhen an echo occurs in a cron script unless there is I/O redirection then the system calls the dafault mailer,(Often elm) and sends a message to the owner of the crontab.
There are recorded cases of files in /var/tmp
coming from the mailer started by cron.It is generally because of the use of address aliasing.
example
A customer has /var/tmp symlinked to /tmp. sendmail puts files
into /tmp that are zero length. Matching timestamps to the
mail.log shows two sample files associated with expanding an
alias list using :include: and another file associated with
forwarding through a pipe. The customer just had to clean up
over 123,272 such zero-length files. Why isn't sendmail cleaning
these up automatically?
he uses .forward files in conjunction with Elm filters and it is this not sendmail which causes the problem.
. They are using a non-HP filtering mechanism, so
their filtering is unsupported & probably the cause of their zero-length
file problems.
Hope this points you in the right direction.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2002 07:55 AM
тАО01-16-2002 07:55 AM
Re: cron temporary files in /var/tmp
I should have tested your theory and given 10 points.
I removed the .forward file and the empty files in /var/tmp do not show up any more.
I wonder how come HP can not change the way cron sends the messages so that when a .forward file is present the /var/tmp files will automatically be removed when not needed.
Thanks again