lo,

On Tuesday 06 December 2005 21:54, Justin Krejci wrote:
[snip]
> /bin/touch /tmp/esync.update
> /usr/sbin/esync
> /bin/touch /tmp/esync.update

given most admins habits of setting up scripts to clear out /tmp on a regular 
basis this is not the best place to put such information on "state". If you 
insist on using this dir then I would recommend something like:

ESYNC_STATE="$(mktemp -p /tmp/esync_state/esync_state.XXX)" || exit 1

By using the subdir you can ensure proper perms and security (depending on 
what user you are running the script as) and you stop _most_ /tmp cleaners as 
they won't kill subdirs.


-- 

Benjamin Smee (strerror)
netmail/netmon/forensics/crypto
[EMAIL PROTECTED]

Attachment: pgphEAgWj1HwZ.pgp
Description: PGP signature

Reply via email to