Subject: Re: set-uid scripts
To: David Forbes <david@flossy.u-net.com>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 11/01/1999 08:47:02
>> Use the @reboot pseudo time of the respective user within cron.
>
>This is really what I'd like to do...however, a problem occurs... I end up
>with two crons resident in memory. I presume that this is because my
>process hasn't terminated (as it will never do). However, this is despite
>the fact that my script does an explicit fork() (it's a Perl script),
>which works at the command prompt. Output from the script is redirected
>to /dev/null.
>
>How can I get remove the second cron?
you also need to close (or redirect) stderr. cron (presumably) still
has a pipe to that and will wait for it to end.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."