1829549 Members
2148 Online
109992 Solutions
New Discussion

background process

 
SOLVED
Go to solution
Shivkumar
Super Advisor

background process

Hey guys,

How to send a running process in the background running mode ?

Thanks,
Shiv
3 REPLIES 3
David Child_1
Honored Contributor
Solution

Re: background process

Send a cntl-z then 'bg' (make sure susp is set to ^Z);

[root]thelonius:/tmp>
# stty susp ^Z

[root]thelonius:/tmp>
# /tmp/ddd.sh
Running
< I hit ^Z here>
[1] + Stopped /tmp/ddd.sh

[root]thelonius:/tmp>
# bg
[1] /tmp/ddd.sh&

David
Mel Burslan
Honored Contributor

Re: background process

I could not quite understand which way you want to go, i.e. from active to bkgr or reverse, so, here is both ways. Hope it helps.

# your_command
running

[1] + Stopped your_command
#
# bg %1
[1] your_command&
#

if you want to bring it back as the active process while it is running as a background process, issue :

# fg %1
________________________________
UNIX because I majored in cryptology...
Eknath
Trusted Contributor

Re: background process

Hi Shiv,

I Think what you can do is just put & at end and the process will run in background.

Cheers !!!
eknath