>To this reply I would add that the following does a more complete job: While you're at it, you might also want to ream out the environment; you may not want to inherit the PATH, USER/LOGNAME, IFS, etc., etc., etc. values that the person who ran the daemon used.