X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=hR7LzI8RPlf11RTnrprm4iPZfrYANJuZz979CJt3IC8 Zw/iYXcHCW2POA/BpUM40VxKwAzvofWhxfm/C9FK/wUnyYddKGoFKdZVPf4K+z8Y TTkF7F9Ro+4N0kkbjrlRTnd9onXXq0ViY371Lu86X0zEJPICI/vh5iAyKO3Pwhts = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=0TOp4uaRaIEFzRNgJK1rOEHmpNc=; b=ifRGWCS+TnmSRL4VP 2uguyTkXmegyxg+9S1UTbmTkLIuQG6KmVmn8YkAbw8xHbQtOMUfp1qcZDdxHCNyS A3XDZcNBH/ibE2alU4XLEZ3+X7+DcaVRICsoupzARJEEGhaKnZzfpU1j0OtVWAZj dFin7qQK0ugsxMavuUPbNVIvE8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Message-ID: <5526FBA6.4070806@winfirst.com> Date: Thu, 09 Apr 2015 15:22:30 -0700 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 AT cygwin DOT 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 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