- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sh: Generated or received a file descriptor number...
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
08-15-2002 05:14 AM
08-15-2002 05:14 AM
Your current Oracle instance is set to SMT1, use the . sid
command to change your Oracle instance.
And right here, it paused for about 1 minute or so, and returned the following message:
sh: Generated or received a file descriptor number that is not valid.
Please help.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 05:45 AM
08-15-2002 05:45 AM
SolutionThere may be some corruption in the history file ($HOME/.sh_history by default). Try to remove that file before logging in again.
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 07:21 AM
08-15-2002 07:21 AM
Re: sh: Generated or received a file descriptor number that is not valid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 11:48 AM
08-15-2002 11:48 AM
Re: sh: Generated or received a file descriptor number that is not valid.
sh -x $HOME/.profile
This will trace execution of everything in .profile. but most likely, the problem is in another script called by your .profile so do the same sh -x with the other scripts until you locate where the error is located.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 12:44 AM
04-29-2003 12:44 AM
Re: sh: Generated or received a file descriptor number that is not valid.
This problem has been bugging us for a long time now. It seems to be a problem of the shell related to the .sh_history file. Whenever someone logged into a system this user occasionally encountered the "Generated or received .....". This happened for several different users.
We saw that more than 8000 times the .sh_history was opened, just for the same user in 1 session (same tty). As a result of this we almost ran into the maximum of the kernel parameter nfile (use sar -v to see the current value on the system).
We were fortunate to had a tool like lsof on the system so we could track this down.
So what we did was the following:
1. remove all .sh_history files on the system.
2. set HISTFILE and HISTSIZE variables in the /etc/profile and export them. The .sh_history file will be created whenever a user logs into the system, so do not worry.
Hope this works.
Bye,
INCS Dept.