From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112066 invoked by alias); 9 Apr 2015 23:15:09 -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 112047 invoked by uid 89); 9 Apr 2015 23:15:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 09 Apr 2015 23:15:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YgLf4-0006gY-NE for cygwin@cygwin.com; Fri, 10 Apr 2015 01:15:02 +0200 Received: from 209.237.53.3 ([209.237.53.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 01:15:02 +0200 Received: from Andrew by 209.237.53.3 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 01:15:02 +0200 To: cygwin@cygwin.com From: Andrew DeFaria Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0] Date: Thu, 09 Apr 2015 23:15:00 -0000 Message-ID: References: <2e6601d072c3$eb17d060$c1477120$@gmail.com> <5526FBA6.4070806@winfirst.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <5526FBA6.4070806@winfirst.com> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00151.txt.bz2 On 4/9/2015 3:22 PM, Mark Hansen wrote: >> >> 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. > > Somebody hasn't read man 5 crontab, which states: These special time specification "nicknames" are supported, which replace the 5 initial time and date fields, and are prefixed by the '@' character: @reboot : Run once, at startup. @yearly : Run once a year, ie. "0 0 1 1 *". @annually : Run once a year, ie. "0 0 1 1 *". @monthly : Run once a month, ie. "0 0 1 * *". @weekly : Run once a week, ie. "0 0 * * 0". @daily : Run once a day, ie. "0 0 * * *". @hourly : Run once an hour, ie. "0 * * * *". -- Andrew DeFaria http://defaria.com -- 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