1825766 Members
2068 Online
109687 Solutions
New Discussion

FG

 
Cody Godines
Occasional Contributor

FG

Is there a way to bring a job that has been
suspended to the foreground even if it is not the most recent process?
3 REPLIES 3
Michael Tully
Honored Contributor

Re: FG

Try

$ jobs (This will list the jobs)
$ fg

The sh man pages states:
Bring each job into the foreground in the order specified. If no job is specified, bring the current job into the foreground.

See the sh man page for a further description.
Anyone for a Mutiny ?
twang
Honored Contributor

Re: FG

+ z will put a current process in the background.
+ c to stop the process.

# jobs (will show your own bg processes)

# fg (will get background process back to the foreground)

Balaji N
Honored Contributor

Re: FG

do a jobs.

it will list the job nos.

and then you can do an fg %1 or something similar.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.