1 |
lo, |
2 |
|
3 |
On Tuesday 06 December 2005 21:54, Justin Krejci wrote: |
4 |
[snip] |
5 |
> /bin/touch /tmp/esync.update |
6 |
> /usr/sbin/esync |
7 |
> /bin/touch /tmp/esync.update |
8 |
|
9 |
given most admins habits of setting up scripts to clear out /tmp on a regular |
10 |
basis this is not the best place to put such information on "state". If you |
11 |
insist on using this dir then I would recommend something like: |
12 |
|
13 |
ESYNC_STATE="$(mktemp -p /tmp/esync_state/esync_state.XXX)" || exit 1 |
14 |
|
15 |
By using the subdir you can ensure proper perms and security (depending on |
16 |
what user you are running the script as) and you stop _most_ /tmp cleaners as |
17 |
they won't kill subdirs. |
18 |
|
19 |
|
20 |
-- |
21 |
|
22 |
Benjamin Smee (strerror) |
23 |
netmail/netmon/forensics/crypto |
24 |
strerror@g.o |