1

Test if script was ran w/ nohup

view story
linux-howto

http://www.unix.com – I want to test if script.sh is being run with nohup ... but $0 does not contain nohup part... purpose: script.sh should only be ran with nohup if user forgets nohup then it should echo "run with nohup" && exit....... (HowTos)