<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: /var/tmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456602#M12692</link>
    <description>Eric:&lt;BR /&gt;&lt;BR /&gt;/var/tmp/ can most certainly be cleaned up.  Temporary files from script installs are placed here as are vi recovery files.  The vi recovery files have the format "Ex&lt;N&gt;" where &lt;N&gt; was the pid of the vi process.  You can script a cleanup for this directory and cron it accordingly.  For example:&lt;BR /&gt;&lt;BR /&gt;# find /var/tmp -mtime +30 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;&lt;/N&gt;</description>
    <pubDate>Mon, 23 Oct 2000 12:22:32 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-10-23T12:22:32Z</dc:date>
    <item>
      <title>/var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456598#M12688</link>
      <description>I have a systems group that is skeptical about removing any files. There are files in /var/tmp from Feb 1999 and I get permission problems sometimes because of these old files.&lt;BR /&gt;Can the experts tell me what /var/tmp is used for and under what criteria they remove the files in that directory. Is there some doc on the recommeded removal period like 30 days after last reboot? &lt;BR /&gt;TIA</description>
      <pubDate>Mon, 23 Oct 2000 12:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456598#M12688</guid>
      <dc:creator>eric stewart</dc:creator>
      <dc:date>2000-10-23T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456599#M12689</link>
      <description>In /var/tmp there are temporary files generated by commands in the /usr hierarchy.&lt;BR /&gt;&lt;BR /&gt;I would delete files older than 3 days..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;federico</description>
      <pubDate>Mon, 23 Oct 2000 12:10:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456599#M12689</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2000-10-23T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456600#M12690</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;files under /var/tmp are usualy temporary files the can be removed after each reboot.&lt;BR /&gt;User have to take care not storing any important data at this location.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Oct 2000 12:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456600#M12690</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-23T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456601#M12691</link>
      <description>some processes will create temporary files in /var/tmp and should (if they terminate correctly) remove their files. Clear up /var/tmp of files not accessed in more than 7 days.</description>
      <pubDate>Mon, 23 Oct 2000 12:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456601#M12691</guid>
      <dc:creator>f. halili</dc:creator>
      <dc:date>2000-10-23T12:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456602#M12692</link>
      <description>Eric:&lt;BR /&gt;&lt;BR /&gt;/var/tmp/ can most certainly be cleaned up.  Temporary files from script installs are placed here as are vi recovery files.  The vi recovery files have the format "Ex&lt;N&gt;" where &lt;N&gt; was the pid of the vi process.  You can script a cleanup for this directory and cron it accordingly.  For example:&lt;BR /&gt;&lt;BR /&gt;# find /var/tmp -mtime +30 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;&lt;/N&gt;</description>
      <pubDate>Mon, 23 Oct 2000 12:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456602#M12692</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-23T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456603#M12693</link>
      <description>In /sbin/init.d/clean_tmps files include /var/tmp as another directory to be cleaned up when system boots. You can activate this function (if you have not) from /etc/rc.config.d/clean_tmps file by setting the option to 1.</description>
      <pubDate>Mon, 23 Oct 2000 12:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456603#M12693</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-10-23T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456604#M12694</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;let me correct Chris reply:&lt;BR /&gt;Yes there is a file /sbin/init.d/clean_tmps BUT when you're looking in it you will find that ONLY /tmp is cleaned, NOT /var/tmp.&lt;BR /&gt;(/var/tmp is only listed, not cleaned)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Oct 2000 12:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456604#M12694</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-23T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456605#M12695</link>
      <description>You can also use the "file" command to see what command/application created the file.  As routine maintenance, you should clean /var/tmp.  There is a "Filesystem Full" white paper in the ITRC that has helpful suggestions on how to keep the system tidy.&lt;BR /&gt;&lt;BR /&gt;# ll /var/tmp&lt;BR /&gt;-rw-r--r--  1 root   sys  1241 AAAa00396&lt;BR /&gt;&lt;BR /&gt;# file AAAa00396&lt;BR /&gt;English Text&lt;BR /&gt;&lt;BR /&gt;# more AAAa00396&lt;BR /&gt;=======  10/16/00 10:49:01 EDT  BEGIN swinstall SESSION (interactive)&lt;BR /&gt;NOTE:    The interactive UI was invoked, since no software was specified.&lt;BR /&gt;* Session started for user "root@rong".&lt;BR /&gt;&lt;BR /&gt;As you can see, this file was created by swinstall.  &lt;BR /&gt;</description>
      <pubDate>Mon, 23 Oct 2000 13:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456605#M12695</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2000-10-23T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: /var/tmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456606#M12696</link>
      <description>Eric:&lt;BR /&gt;&lt;BR /&gt;But why is it that you're getting permissions problems because of the old files? Are your scripts using the same temp file name over again each time they run?&lt;BR /&gt;&lt;BR /&gt;If that's the case, try creating the temp file names using 'mktemp' (see the man page), or use file names that contain the process number--which should be unique most of the time--like this:&lt;BR /&gt;&lt;BR /&gt;TEMPFILE="yourscript-$$.tmp" (Bourne shell)&lt;BR /&gt;set TEMPFILE="yourscript-$$.tmp" (C shell)&lt;BR /&gt;&lt;BR /&gt;Use 'trap' (Bourne) or 'onintr' (C shell) to remove the temp files if your script terminates unexpectedly. The way I do it for Bourne shell is something like this:&lt;BR /&gt;&lt;BR /&gt;# Signal '0' is a normal termination:&lt;BR /&gt;trap "rm -f ${TEMPFILE:?'Undefined! Not removing any files.'}" 0&lt;BR /&gt;# If we get signals 1, 2, or 15, exit with nonzero status (failure):&lt;BR /&gt;trap "rm -f ${TEMPFILE:?'Undefined! Not removing any files.'}; exit 1" 1 2 15&lt;BR /&gt;&lt;BR /&gt;(I hope I didn't make any typos)</description>
      <pubDate>Tue, 24 Oct 2000 17:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-tmp/m-p/2456606#M12696</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-10-24T17:54:26Z</dc:date>
    </item>
  </channel>
</rss>

