delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/09/19:15:24

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=jLqJTEtfAqNOXROKjuGDVTRyKePC4C
6NU5J9w48A/lp/lwJxBT1OVNcMHG7Gj/UjziSf0M9/BPloShJw9Q6hhismFsyGD2
jGXrUlCoLBwD9BoNUiYmVwGxWPpJuNk/pm9WV8iOIhtWKAQmk9WGUNpGP3RIXBTL
7Sw/65/kwdeh4=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=op+9pS4J9oI2la8uJGdlXNGLqPY=; b=VSjF
adyGHQvSqJPmEl9dAvH4WW3hblaS3qke06cnMG8GYIKs+jEDVWEr60OVq2mBU8fk
SKB0fYHlo/6oemhoGbs2tsS0hkP8kDz31VG4Ob2cWkONsle7La1r0S2H5KRVFE9w
U9grHaQnshXOwz/jZpflRXLEPtvFxFXWYQeELOY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=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
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]
Date: Thu, 09 Apr 2015 16:14:55 -0700
Lines: 33
Message-ID: <mg715f$g8i$1@ger.gmane.org>
References: <2e6601d072c3$eb17d060$c1477120$@gmail.com> <mg6ne3$m61$1 AT ger DOT gmane DOT org> <5526FBA6 DOT 4070806 AT winfirst DOT com>
Mime-Version: 1.0
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019