Operating System - HP-UX
1748181 Members
3992 Online
108759 Solutions
New Discussion юеВ

Cntl C exits shell after 11i upgrade?

 
Edward Massaro_1
Occasional Advisor

Cntl C exits shell after 11i upgrade?

my DBA's are experincing an issue when they issue a cntl-c. Rather then it ending the script they are running, it is closing there session . Any clues?
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Cntl C exits shell after 11i upgrade?

What does "stty" report the interrupt setting to be? It should be "intr = ^C".


Pete

Pete
Eddie Massaro
New Member

Re: Cntl C exits shell after 11i upgrade?

intr = ^C

yup
Pete Randall
Outstanding Contributor

Re: Cntl C exits shell after 11i upgrade?

Anything else set to "^C"?


Pete

Pete
Eddie Massaro
New Member

Re: Cntl C exits shell after 11i upgrade?

speed 9600 baud; -parity hupcl
min = 1; intr = ^C; quit ; erase = ^H; kill = ^U;
swtch ;
stop ;
brkint -inpck -istrip icrnl ixoff onlcr
-iexten echo echoe echok
-echoctl -echoke


nope
Pete Randall
Outstanding Contributor

Re: Cntl C exits shell after 11i upgrade?

Just double-checking: you are reporting what you see when you're logged in as them, aren't you?

I've seen ^D close sessions before but I'm not sure where this gets set. It seems that whatever switch normally gets set to ^D might be getting set to ^C but I don't know where to look. Anyone else?


Pete

Pete
Mark Greene_1
Honored Contributor

Re: Cntl C exits shell after 11i upgrade?

The last line in their .profile wouldn't happen to be "exec ..."? If so, when they kill their script, there's no parent pid to return to so they are all done.

mark
the future will be a lot like now, only later
Eddie Massaro
New Member

Re: Cntl C exits shell after 11i upgrade?

i did find this in the .profile for the user in question.. could this be the issue?

stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff

i think that eof may be the culprit.
Pete Randall
Outstanding Contributor

Re: Cntl C exits shell after 11i upgrade?

Since it's ^C that causes their sessions to close, I wouldn't think that eof would be the culprit unless eof was set to ^C.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Cntl C exits shell after 11i upgrade?

Try running stty -a and see what you get.


Pete

Pete