This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clean up /tmp on system reboot [was: Xorg server always starting up on DISPLAY 3.0]

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

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 '@'
       @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

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]