in reply to I prefer to:
Sometimes I just use exec without the fork.
For example, one bit of code, running under cron, needs some environment settings made and rather than using a wrapper shell script I check the settings in the script and if not present make them then exec the script over itself.
Probably not the best or even a good way to do it but it does work.
|
---|
In Section
Past Polls