If you use the bash shell, then you have an alternative (don't you always?) Instead of using nohup, just run the command normally, put it in the background one of the two ways we've discussed, and then disown -h the job.

$ tar cjf /backup/rob/home.tar.bz2 . &
[1] 32089
$ disown -h

You can then safely logout or close your terminal. As with nohup, if you close the terminal or logout, you will not be able to access that command directly using the jobs and %<N> or fg <N> commands..

The Z shell also has % substitution - eg your example could be typed as disown %[TAB] and zsh would expand it to disown %tar. Out of curiosity - does bash have a similar mechanism?
–
new123456Nov 3 '11 at 0:50