I know about
nohup and it won't do what I want:
$ nohup sleep 600 2>/dev/null >/dev/null </dev/null&  21844 $ ps -ef | fgrep -e 'sleep > TTY' UID PID PPID C STIME TTY TIME CMD me 21844 19313 0 09:37 pts/9 00:00:00 sleep 600
As you can see, sleep still has
pts/9 as a controlling terminal. I don't want it to have any controlling terminal. Partly because the program I want to use (it isn't
sleep if you haven't guessed) tries to open the controlling terminal to ask me questions and I want to see how it behaves if it can't. How do I make this happen?