This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
- From: Mark Hansen <meh at winfirst dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 09 Apr 2015 15:22:30 -0700
- Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
- Authentication-results: sourceware.org; auth=none
- References: <2e6601d072c3$eb17d060$c1477120$ at gmail dot com> <mg6ne3$m61$1 at ger dot gmane dot org>
On 4/9/2015 1:28 PM, Andrew DeFaria wrote:
On 4/9/2015 5:51 AM, cyg Simple wrote:
From: Jim Reisert AD1C
Wouldn't it be nice if Cygwin cleaned up the /tmp directory each time the
computer is re-booted? I don't know how that would work in real life,
however.
Simply create a scheduled task to execute a windows batch file on system
start that changes directory to the Cygwin /bin directory and executes sh -c
'rm -f /tmp/*'.
--
cyg Simple
Or use cron...
How can cron help? You don't want to delete these files while some process may be
using them (note: I didn't say while the process has the file open - it may not be
open to be valuable). You really need this clean-up done when the machine boots up
because you know at that point, all the processes that were using those files are
gone.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple