Operating System - HP-UX
1833777 Members
2280 Online
110063 Solutions
New Discussion

Re: annoying bg/fg job control

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

annoying bg/fg job control

Hi all,

can anyone tell me what shell or what profile to configure to get a Ctrl-Z or Ctrl-B key to put a job into the bg.

ie:

# netscape

(Ctrl-Z)

prompt returns

# jobs
[1] netscape

# fg 1
etc..
It works for me (tm)
3 REPLIES 3
Bill McNAMARA_1
Honored Contributor

Re: annoying bg/fg job control

reply, ps I know I can use & at the end, but in the times when I don't I'd prefer to have a bg key seq.!

Later,
bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: annoying bg/fg job control

thanks John!

Later,
Bill
It works for me (tm)
John Palmer
Honored Contributor
Solution

Re: annoying bg/fg job control

Hi Bill,

With the Posix/Korn shell, you just have to ensure that Ctrl Z is set as your 'susp' character in stty.

Put:
stty susp ^Z

in the relevant profile script (/etc/profile or .profile).

Regards,
John