Probably the (interactive) shells are doing this. If you enter a long (multiline) command like a for-loop, a while-loop, etc. shells create temporary files they sometimes "forget" to delete. Over time these files accumulate.
Other programs oftenly do the same. For instance the /tmp directory of one of my machines looks like this (part of it - rest snipped):
The first group is from shell processes, the second group is from xlc.
Delete them if they bother you. You could do it from cron with a "find .... -exec rm ..." or configure skulker to go after them.
Hello,
does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present?
Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Hi,
I am encountring this problem from some time now...
ksh creates temp files /tmp/sh$$.* .
Sometimes if some of my shell script crashes or I kill it... these temp
files remain in the /tmp directory.
At some later time when some script gets the same PID it tries to
create files in the... (5 Replies)
Trying to setup user to have the ability to delete any files (regardless of owner) in /tmp.
I've tried almost everything... the permission on the folder is drwxrwxrwt 10 bin bin, and at one point I give all the possible permission (short of root) I can give to the user, and he still can't delete... (2 Replies)
Hi all,
I would like to know how to save files in /tmp...
I was interested in knowing this because when ever i booted into solaris there would already be a few files present in /tmp.however any file that is freshly stored in would be lost on reboot...
can anyone answer this pls!! (3 Replies)
Hi all,
Am currently working on editing a startup script that need me to copy a certain file from cdrom to /tmp (its a live cd am working on)and mount if from there to certain place..
Now i know that nothing can be stored in /tmp permanently ,however mechanism to load the file to /tmp on... (19 Replies)
I have a lot of files with the following names in /etc
/tmp/<num>.mktcpip
like
/tmp/934030.mktcpip
Anyone knows which process creates these files? (1 Reply)
Hey Guys,
I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
I wanted to know whether all files under /tmp can be safely removed. I guess that /tmp may also have temporary files for applications currently being worked on, so at the most those applications may just shut down.
I hope that my question is clear whether all files under /tmp can be safely... (5 Replies)