UNIX Process Suspend

Hi,

I have this doubt....

When some program is running and if we press CTRL+Z...it is suspended...
what should we do to continue its execution

I know that KILL can be used to completely terminate the process....but is there any way to continue...

Thanks

type

fg or
bg

will bring that process from suspend state and continue running

but, first use jobs to find out the id. In most cases it will be 1. But, you may have more than one suspended processes.

You are right Phantom !

if you have more than one job suspended ... find out pid of jobs by

jobs -p

See the following example.

$sleep 500
^Z[1] + Stopped (bhargav)        sleep 500
$sleep 400
^Z[2] + Stopped (bhargav)        sleep 400
$jobs -p
42738
72260
$fg 42738
sleep 400
^C$
$jobs -p
72260
$fg 72260
sleep 500
^Z[1] + Stopped (bhargav)        sleep 500
$ps | grep 72260
 42742  pts/0  0:00 grep 72260
 72260  pts/0  0:00 sleep 500
$fg 72260
sleep 500
^C$jobs -p
$