I am looking into the nohup command and I am not sure which shells it support. It seems as if this program works differently in bash and tcsh. What I tried was something very simple.
nohup --help
When I start it from bash it works just fine, but for tcsh is says,
--help: Command not found.
This does definitely not mean the command not works, but this is a confusing indicator. Due to that the settings on the machine I run on seems to keep programs a fairly long time before they terminate, it is hard to actually verify that nohup is working.
Another indicator that things no works as expected is that when running the script I plan to run it does also work differently. When running in bash it will output to nohup.out, while in tcsh it does not (it outputs to the terminal I run the nohup command in).
Any ideas?
Tested on both rhel6 and rhel7