I've written quite a few shell scripts over the years (but I'm certainly not a sysadmin) and there's something that always caused me troubles: how can I fork a shell command immune to hangups in the background from a Bash script?
For example if I have this:
command_which_takes_time input > output
How can I "nohup" and fork this?
The following doesn't seem to do what I want:
nohup command_which_takes_time input > output &
What is the syntax I am looking for and what am I not understanding?