I am using the bash shell. I frequently use nohup to ensure that my processes are not stopped when I close the shell/terminal that started them. I use a syntax like:
nohup myprocess
When starting, nohup gives the message:
nohup: ignoring input and appending output to 'nohup.out'
Then, nohup gives no more output to the screen; it is all written to nohup.out.
I frequently use the program nohup so that my processes are immune to hangups. So if I want to make the program program immune to hangups, I use the command
nohup program &
where & puts the process in the background.
When starting, nohup gives me the message:
nohup: appending output to `nohup.out'
Is there any way to send the output to a file other than nohup.out?
If I have a process writing to nohup and the storage where it writes to is slow, does it block the process which is running in nohup?
It is commonly said that "&" puts the process into background execution, but that process would be killed when terminal is closed. But from what I see, everything I sent into background was continuing to be active long after I close the terminal.
I have to start a process as background and I know how to start it with "nohup" but over the time "nohup.out" is getting bigger and actually I dont want because the log is giving me the same output as nohup.out.
If anyone knows it, please let me know
Regards,
Anant
i need to run firefox process on a remote host via ssh and also keep process running even after ssh logout.
I already have tried these ways nohup firefox & ,screen,disown -h .
but it seems these work only for the process without hardware display.because these work fine with my scripts and I can keep my scripts running even after ssh log out but I can't do the same for firefox.
I am stuck with
i need to run firefox process on a remote host via ssh and also keep process running even after ssh logout. I already have tried these ways nohup firefox & ,screen,disown -h . but it seems these work only for the process without hardware display.because these work fine with my scripts and I can keep my scripts running even after ssh log out but I can't do the same for firefox.
The problem is that the process is not a job inside of my active shell (as I've logged in from remote because my X-system has crashed), meaning: I guess disown, nohup, CTRL+Z & bg, screen et al. will not work.
Motivation:
I started a long running job inside of a gnome-terminal. I want to detach it from the its parent, as I the X-system has crashed.
I run a server executable in Centos using the following command "nohup server &". Now I need to kill the process "server". But I tried "ps -a" command to get the PID but I couldnt get the process. Now how to kill the "server" now?