Session independent process

Hi

i am trying to run a report which takes approx 5 hours to complete so what i did i put that reporting command in background and then this reporting process started executed in background but the problem is when i close that session that background job lost :frowning: ....

please help me that how to run a command in background which is session independent

Hi.

Have a look at the nohup command.

nohup /home/user/yourscript >/home/user/yourscript.log 2>&1 &

---------- Post updated at 01:41 PM ---------- Previous update was at 01:41 PM ----------

nohup /home/user/yourscript >/home/user/yourscript.log  2>&1 &

You can also launch it using crontab

You can also launch it in a GNU screen session this very nice tool allow sharing/unattaching/re-attaching sessions.

hiiiii
thanx for reply it worked
thanx