- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ctrl + c and ksh .....
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
04-26-2007 04:44 AM
04-26-2007 04:44 AM
i did:
export SHELL=/usr/bin/ksh
how can i do for automatic way this has been changed every time i open a new sesion?
and
i tried to enter ctrl + c but it does not work !!!!!
sh: ^C: not found.
how can i fix that?
please let me know.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:48 AM
04-26-2007 04:48 AM
Re: ctrl + c and ksh .....
or for root ... /root/.profile
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:49 AM
04-26-2007 04:49 AM
Re: ctrl + c and ksh .....
usermod -s /usr/bin/ksh
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:51 AM
04-26-2007 04:51 AM
Re: ctrl + c and ksh .....
To actually use ksh in the current session you can do:
# /usr/bin/ksh
or
# exec /usr/bin/ksh
To always use ksh you can change your default shell in the /etc/passwd file. HOWEVER, NEVER EVER EVER CHANGE ROOT's DEFAULT SHELL. It must ALWAYS be /sbin/sh.
To change your default shell in /etc/passwd you can use the usermod command (see the usermod man page for details) or, if you have permission, you can edit /etc/passwd, preferably with vipw.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:54 AM
04-26-2007 04:54 AM
Re: ctrl + c and ksh .....
and what about ctrl + c, how can i fix that?
y try to use that keys but they do not work ....
:(
please let me know.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 05:03 AM
04-26-2007 05:03 AM
Re: ctrl + c and ksh .....
As for your Ctrl-C question, I am having trouble finding a question. You may want Ctrl-C to be the default interrupt key, if that is the case then insert a line 'stty intr "^C"' in the user's .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 12:37 PM
04-26-2007 12:37 PM
Re: ctrl + c and ksh .....
chsh billh /usr/bin/ksh
Your CTRL-C problem is caused by not logging in in a 'normal' manner (for example, using Xwindows), or someone has clobbered your .profile. All HP-UX come with a standard .profile that set CTRL-C (and several other important terminal settings). If someone has 'improved' your .profile by borrowing one from another flavor of Unix, just replace it with the standard version:
cp /usr/newconfig/etc/skel/.profile $HOME/.profile
If you are running Xwindows, then your terminal window is probably bypassing standard login scripts. Change to standard behavior by doing this one time for each user:
echo "*loginShell: true" >> $HOME/.Xdefaults
Bill Hassell, sysadmin