Monday, March 27, 2006

How To:The whimsical stty...2..Sending a foreground process to background

Sometimes just after entering the command for running a process which is going to talke lonnnngggg time,we realize that we shud have start it in background mode.

To do so..suspend it...the send it to the background.
The commands:

$lonnng_process --ran in fg mode

Press ^z.The process will be suspended( not killed ).

^Z[1] + Stopped (SIGTSTP) lonnng_process
$

Its telling the process has been suspended.
Now just tell it to send it to background.

$bg
[1] lonnng_process &
&

If u have suspended more than one processes then send it to bg by spefying number like:

$bg %1 --or
$bg %2

In the same way you can take a background process to foreground.

Labels:

0 Comments:

Post a Comment

<< Home