- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems with telnet 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
03-04-2002 08:05 AM
03-04-2002 08:05 AM
If i log into this machine with a c shell...then change into ksh...then source....its ok. But logging into the machine with a ksh doesn't seem to work.
Any hints or ideas??
The /etc/shells files is there and valid. The shells are there as well.
Thanx for the help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:12 AM
03-04-2002 08:12 AM
Re: Problems with telnet and ksh
Try this link,
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=aeec5d2503ddd01e98/screen=ckiDisplayDocument?docId=200000026056389
This is the solution suggested,
//Quote//
Solve the problem of ksh/sh hanging when the home directory is NFS mounted by setting HISTFILE to point to a locally mounted directory such as /tmp/.sh_hist.$LOGNAME.
//EndQuote//
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:13 AM
03-04-2002 08:13 AM
Re: Problems with telnet and ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:13 AM
03-04-2002 08:13 AM
Re: Problems with telnet and ksh
#!/bin/ksh -x
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:14 AM
03-04-2002 08:14 AM
Re: Problems with telnet and ksh
Check your user profile for any problems. Try renaming it and login. Also check whether the home directory has any big files ( sh_history).
What about loging for 'sh' ? Is this happens to only one user ?
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:15 AM
03-04-2002 08:15 AM
Re: Problems with telnet and ksh
#####
/bin/ksh
clear
ls
####
eof
This is just for testing purposes....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:17 AM
03-04-2002 08:17 AM
Re: Problems with telnet and ksh
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:17 AM
03-04-2002 08:17 AM
Re: Problems with telnet and ksh
Having the same issue with a 10.20 machine...
But this time...it nevers gets to the users profile....it hangs on the system profile after it prints out the /etc/copyright.
any ideas???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:21 AM
03-04-2002 08:21 AM
Re: Problems with telnet and ksh
also run fuser against /etc/motd to make sure no other process has a lock on it.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:33 AM
03-04-2002 08:33 AM
Re: Problems with telnet and ksh
#!/bin/ksh
HISTFILE=/tmp/.sh_hist.$LOGNAME
TERM=vt100
clear
ls
On the 10.20 and 11.00 machines...it now logs in perfectly...but when i do a..
$ . .profile
...the machine replys with..
ksh: .profile: not found
The /bin is within the profile and a command below works fine...
$ ksh . .profile
any ideas??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:02 AM
03-04-2002 10:02 AM
Re: Problems with telnet and ksh
. ./.profile
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:07 AM
03-04-2002 10:07 AM
Re: Problems with telnet and ksh
That seems to work.
What do I need to do so that the user only has to type in
. .profile
to source there profiles after login??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:13 AM
03-04-2002 10:13 AM
Re: Problems with telnet and ksh
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:16 AM
03-04-2002 10:16 AM
Re: Problems with telnet and ksh
This specific account is an Oracle accout. I have multiple .profile files created to source the correct variables for differnt versions of Oracle. So..the may log into the machine....but they will need to source in the appropriate .profile for the specific version / OS they want to test with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:27 AM
03-04-2002 10:27 AM
Re: Problems with telnet and ksh
you really do not want to add the "." reference into the PATH variable, as there are too many potential gotcha's involved that will only cause more problems.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:34 AM
03-04-2002 10:34 AM
Re: Problems with telnet and ksh
The problem / issues have been solved.
thanx again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 10:40 AM
03-04-2002 10:40 AM
Re: Problems with telnet and ksh
Try this from any directory,
$ . $HOME/.profile
Note the "." before $HOME
This will source the .profile of the user from his home directory.
Hope this helps.
Regds