From: Michele Andreoli (andreoli@pisoft.it)
Date: Sat Mar 13 1999 - 00:33:30 CET
On Fri, Mar 12, 1999 at 09:11:06AM -0600, Johannes Niess wrote:
>
> AT='17:10'
> reboot
> rm /var/spool/atspool 1954
>
The patch is very simple. In /usr/script/mu-atd, localize "add to queue"
segment and invert the "rm" row with the "cat" row, obtaining:
echo "AT='$@'" > $SPOOL/$$
echo "rm $SPOOL/$$" >> $SPOOL/$$
cat >> $SPOOL/$$
chmod +x $SPOOL/$$
In this way, the batch command firstly remove itself, then execute
your command. Is very strange, but in Linux a script can remove him file
still executing!
-Michele
-- Mi sarebbe piaciuto concludere con un'affermazione positiva, ma non me ne vengono in mente. Vanno bene due negative? -- Woody Allen
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:11 CET