-
bastib
-
RE: Running processes in the background
-
Hi,
if I run a job in background here I still see the output in the terminal...
you can store the output in a file and check that file later like
[code]./bigjob.sh > output.txt &[/code]
but I guess you know that.
A running job can be stopped with CTRL+z. If you type [code]bg[/code] it continues execution in background. With [code]fg[/code] you can reattach it if you want.
Have you tried [i]screen[/i] already?
With this tool you can start the big job and even close the terminal (or close the connection if it is a remote host) and later reattach it.
This would work something like that
[code]screen -d -m bigjob.sh
[/code]
to reattach:
[code]
screen -d -r
[/code]
with CTRL+a CTRL+d you can detach again.
Perhaps it helps...
Basti
-
25 May 09
Hi,
if I run a job in background here I still see the output in the terminal...
you can store the output in a file and check that file later like
./bigjob.sh > output.txt &
but I guess you know that.
A running job can be stopped with CTRL+z. If you type
bg
it continues execution in background. With
fg
you can reattach it if you want.
Have you tried screen already?
With this tool you can start the big job and even close the terminal (or close the connection if it is a remote host) and later reattach it.
This would work something like that
screen -d -m bigjob.sh
to reattach:
screen -d -r
with CTRL+a CTRL+d you can detach again.
Perhaps it helps...
Basti