1825795 Members
2211 Online
109687 Solutions
New Discussion

Re: process interrupts

 
SOLVED
Go to solution
Igor Sovin
Super Advisor

process interrupts

Hi all !

I run one process in terminal window and when I close window process interrupts.
How to make process continue running even if I close terminal window?
3 REPLIES 3
Amit Manna_6
Regular Advisor
Solution

Re: process interrupts

HI,

You can use nohup
In this case if you close the window it will not be interrupted.

Please make a note of the PID no so that you can have a look latter.

Thanks and Regards,

Amit Manna
twang
Honored Contributor

Re: process interrupts

Yes, you can execute a command in the background using nohup, the following is a small script I use to capture the return value of the command
#!/usr/bin/sh!

nohup

if [ $? = 0 ]
then
echo "echo command succesful" > /tmp/command.log
else
echo "command unsuccesful" > /tmp/command.err
fi
Igor Sovin
Super Advisor

Re: process interrupts

thank you guys!