Operating System - HP-UX
1836428 Members
3785 Online
110100 Solutions
New Discussion

Re: control sequence to break out of a single program during boot hang

 
Nickolas A Gray
Advisor

control sequence to break out of a single program during boot hang

I once saw an HP rep skip the sendmail startup by typing in a key sequence. I know that this has been asked before. But it never seems to be answered correctly. I want to break free from waiting for a particular program.(sendmail is a good example here since I know what I am losing if it doesn't run) and continue on with the remaining programs. Sendmail is just an example, it could be any of the programs.

Thanks
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: control sequence to break out of a single program during boot hang

Hi,

try cntl-\ (control-backslash)

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: control sequence to break out of a single program during boot hang

Hello,


shift+ctrl+pipe

-USA..
Good Luck..
Tom Maloy
Respected Contributor

Re: control sequence to break out of a single program during boot hang

Ctrl-shift-Pipe will work if you catch the script early enough - right at the beginning.

Tom
Carpe diem!
Dietmar Konermann
Honored Contributor

Re: control sequence to break out of a single program during boot hang

During bootup /sbin/bcheckrc does a trap "" 2. This means that only SIGINT is masked (which is the reason that ctrl-c does not work).

But SIGQUIT (3) is not masked... so you can usually interrupt using that signal.

Like written in the responses above SIGQUIT can be sent by Ctrl-
See stty -a:
quit = ^\;

E.g. on a German Keyboard you need to type Strg-AltGr-??.

Another interesting thing is that brkint is active during bootup, so you can also use the BREAK key for interrupts. This is sometimes important if your keyboard type has problems with ^\.

If you are logged to a GSP with telnet then you may escape to the telnet> prompt and issue "send break".

Summary: you need to send SIGQUIT.


Regards...
Dietmar.



"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
U.SivaKumar_2
Honored Contributor

Re: control sequence to break out of a single program during boot hang

Hi,

I use control+break to interrupt the script.

regards,
U.SivaKumar
Innovations are made when conventions are broken