From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127440 invoked by alias); 9 Apr 2015 22:22:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127431 invoked by uid 89); 9 Apr 2015 22:22:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: stargate.mehconsulting.com Received: from stargate.mehconsulting.com (HELO stargate.mehconsulting.com) (65.78.188.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 09 Apr 2015 22:22:34 +0000 Received: from [192.168.140.48] (vpn.fdielt.com [64.170.21.194]) (authenticated bits=0) by stargate.mehconsulting.com (8.14.7/8.14.7) with ESMTP id t39MMVfO004726 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 9 Apr 2015 15:22:31 -0700 Message-ID: <5526FBA6.4070806@winfirst.com> Date: Thu, 09 Apr 2015 22:22:00 -0000 From: Mark Hansen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0] References: <2e6601d072c3$eb17d060$c1477120$@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00150.txt.bz2 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