1833850 Members
2046 Online
110063 Solutions
New Discussion

Re: File Descriptor

 
Soraia Gomes
New Member

File Descriptor

Hi,

HPUX 11.0: User logs in and gets the following error message on login:

.Profile[35]:Generated or received a file descriptor number that is not valid

In .profile has:

set -u
trap "echo 'logout'"0
EDITOR=vi
export EDITOR
. ./.oneworld (LINE 35)

Does anyone know how I solver this problem?
Soraia Gomes
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: File Descriptor

Hi:

It would be helpful to post "oneworld". One possibility that comes to mind is using a file descriptor that is greater than nine (9).

...JRF...
Soraia Gomes
New Member

Re: File Descriptor

Thanks,

but where can I set: file descriptor greater than nine?
Soraia Gomes
A. Clay Stephenson
Acclaimed Contributor

Re: File Descriptor

Hi,

I think James is trying to suggest that perhaps someone tried something like:
exec /tmp/myfile<10
XX=`line <&10`

But that is illegal since only file descriptors 0-9 are valid in the shell.

I think if you post the 'oneworld' script, someone can help.

Clay
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: File Descriptor

Hi:

Yes, that's exactly what I was suggesting. Please post "oneworld".

...JRF...