- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Control C doesnt function under bourne shell u...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 01:32 AM
09-06-2002 01:32 AM
Control C doesnt function under bourne shell under UX 11.00
When i login to one of our systems the contol-c function doesnt work.
I looked in my .profile but there nothing seems wrong, the intr is set by stty intr ^C so that should work fine.
Also ^X ^D and ^H are set but these work fine.
Is this a know problem and what could i do to solve it.
Anyway thx
Ernst Cozijnsen
Cap Gemini Ernst & Young the Netherlands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 01:58 AM
09-06-2002 01:58 AM
Re: Control C doesnt function under bourne shell under UX 11.00
First, I'd check your intr setting with stty -a. Also check that ^C isn't assigned to anything else.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 02:45 AM
09-06-2002 02:45 AM
Re: Control C doesnt function under bourne shell under UX 11.00
speed 9600 baud; line = 0;
rows = 69; columns = 132
min = 1; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp = ^Z; dsusp = ^Y
werase = ^W; lnext = ^V
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
echoctl -echoprt echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
So this should be normaol though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 03:59 AM
09-06-2002 03:59 AM
Re: Control C doesnt function under bourne shell under UX 11.00
If you input the command
trap 2
does ctrl C then work?
If it does then it looks as though someone has amended /etc/profile. This runs 'trap "" 1 2 3' (to ignore those signals) at the start and 'trap 1 2 3' at the end. Check to see if the last one has been deleted.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 04:25 AM
09-06-2002 04:25 AM
Re: Control C doesnt function under bourne shell under UX 11.00
if i do "stty intr ^K" for example then control +c works i see ^C at the prompt.
When i hit control+k the cursor doesnt move so it seems the intr signal gets stuck somewhere.
I also think it has something to do with the traps but just cant figureout what.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 04:27 AM
09-06-2002 04:27 AM
Re: Control C doesnt function under bourne shell under UX 11.00
trap
??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 04:47 AM
09-06-2002 04:47 AM
Re: Control C doesnt function under bourne shell under UX 11.00
Really weird symptom... did you already check if the problem is the same for all users?
Are there differences for users with different login shells? (/sbin/sh, /usr/bin/sh, /usr/bin/ksh, /usr/bin/csh)
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 04:57 AM
09-06-2002 04:57 AM
Re: Control C doesnt function under bourne shell under UX 11.00
I tried it with all the shells and all users and it makes no difference.
I placed a call at HP in the netherlands and they also didnt know the problem but they advised to reboot the machine.
uhh well it aint windows though!
But ok tonight we'll reboot the machine and look what happens in the morning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 05:09 AM
09-06-2002 05:09 AM
Re: Control C doesnt function under bourne shell under UX 11.00
Man sh-posix states 'Any attempt to set a trap on a signal that was ignored upon entering the current shell is ineffective.' so you can't reinstate it with 'trap 2' or see it with 'trap'.
If your shell has a parent shell then it's possible that /etc/profile or a .profile is issuing 'trap "" 2'. If your shell is owned by telnetd than you need to check:
- how telnetd is started by inetd
- how inetd is started (one of the system startup scripts may have been amended)
I don't think that a reboot is going to fix this.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 05:12 AM
09-09-2002 05:12 AM
Re: Control C doesnt function under bourne shell under UX 11.00
Anyway tnx all for helping.
Regards,
Ernst Cozijnsen