That will still exit when you close the session, it simply returns control to the terminal. You need somthing like "screen". This will create virtual terminals that remain open even when not connected to a real terminal. When you login again you can connect back to the virtual terminal.
I'm running a script on my mac at work that kills the internet and takes about 12hrs. The whole reason I wanted to run it at work was to free up my machine, but if it needs to stay on and connected looks like my striving towards efficieny failed.
I'm using nohup frequently now over putty to send commands to my mac to do.
It says somehting like sending output to something. I wondered, when I log back into putty is there a way to resume the output to screen without interupting the process?
By default, the message is: nohup: appending output to `nohup.out'
This is simply saying that all output from the command is being sent to the file nohup.out which will have been created in whatever directory you happened to be sat in when you started the command.
If you want to "resume" seeing the output, try something like:
tail -f nohup.out
And don't worry, you can ctrl+c this without interupting the original command!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.