Operating System - HP-UX
1833981 Members
2264 Online
110063 Solutions
New Discussion

Re: File Descriptor Number is not vaild

 
TMcB
Super Advisor

File Descriptor Number is not vaild

WHen a certain user logs on, the following error message is displayed.
/etc/profile[132]: Generated or received a file descriptor number that is not valid.

This profile is not unique to this user.
The error message only appears the first time the user logs on. When he tries a second time, there is no error message

Does anyone have any ideas why this would be happening?

Thanks
6 REPLIES 6
Bill McNAMARA_1
Honored Contributor

Re: File Descriptor Number is not vaild

look at line 132 vi .profile esc :132
or add set -x after the #!/usr/bin/ksh to get debugging output.

There's probably a file being referenced before it its created.

Later,
Bill
It works for me (tm)
TMcB
Super Advisor

Re: File Descriptor Number is not vaild

Hi Bill

In /etc/profile line 132 is
. /usr/local/etc/profile

This is running another profile script, which already exists.
I'm really puzzled as to why it only occurs the first time each dat when the user logs in

Thanks
Vincenzo Restuccia
Honored Contributor

Re: File Descriptor Number is not vaild

TMcB
Super Advisor

Re: File Descriptor Number is not vaild


Hi Vincenzo

What does Ctrl .profile mean??

Thanks
Manuel P. Ron
Frequent Advisor

Re: File Descriptor Number is not vaild

Using the command '. ' needs a previous shell loaded cause it reloads it. So, you can't use it in your .profile. Besides, Ctrl. means Control.
Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month. - Wernher von Braun
Soraia Gomes
New Member

Re: File Descriptor Number is not vaild

Hi Barry,

Please, tell me how do you solver this problem because I have equal problem in my system.

Thanks
Soraia Gomes