Operating System - HP-UX
1832183 Members
2690 Online
110038 Solutions
New Discussion

UX:rlogin:ERROR: Read error from terminal: Invalid argument

 
Tan Suryadi Irvan
New Member

UX:rlogin:ERROR: Read error from terminal: Invalid argument


Hi all,

I write some KSH script that do modify .profile (contains some command I want to execute), then do rlogin (I do backup .profile then copy back the original one).

I have use this code many2 times... but yesterday I figured out an error message
UX:rlogin:ERROR: Read error from terminal: Invalid argument

Any clue what can cause this?

Regards,
Irvan
5 REPLIES 5
Frank Slootweg
Honored Contributor

Re: UX:rlogin:ERROR: Read error from terminal: Invalid argument

Is this the *exact* error? Also: Which HP-UX release and (rlogin) patch(es)?

I could not find this error in the rlogin executables and shared libraries, so further information is needed.
Tan Suryadi Irvan
New Member

Re: UX:rlogin:ERROR: Read error from terminal: Invalid argument


Yes.. that's the exact error messages

UX:rlogin:ERROR: Read error from terminal: Invalid argument
Close connection.

Can you direct me where is the library of error messages of certain command?

If I do man blah... i can't see it

Thanks
Irvan
Carlos Fernandez Riera
Honored Contributor

Re: UX:rlogin:ERROR: Read error from terminal: Invalid argument

maybe you are using a tset command on your profile.

tset can send a command to terminal to read the terminal type ( answerback for terminal).


See man rlogin and rlogind.

Just thoughts...
unsupported
Frank Slootweg
Honored Contributor

Re: UX:rlogin:ERROR: Read error from terminal: Invalid argument

> Yes.. that's the exact error messages
>
> UX:rlogin:ERROR: Read error from terminal: Invalid argument
Close connection.

Are you sure, especially about the "UX:" part? HP-UX normally does not have errors which say "UX".

Note: When giving error messages it is extremely important to give the *exact* error, this includes 'details' like spaces, upper and lower case, punctuation, etc..
Why? Because one often has to search for these errors and computer searches are mostly exact searches, not 'sort of' searches.

Which messages (also positive ones) do you get before and after the error message?

Do you get the error message all the time?

> Can you direct me where is the library of
> error messages of certain command?
>
> If I do man blah... i can't see it

Mostly the manual pages.

I did a "strings -a" on the executable file (/usr/bin/rlogin) and grep(1)-ed the output on parts of the message. I did the same for the shared libraries used by /usr/bin/rlogin (see "chatr /usr/bin/rlogin" output).

Again: Which HP-UX version and which (rlogin) patch(es)?
Tan Suryadi Irvan
New Member

Re: UX:rlogin:ERROR: Read error from terminal: Invalid argument


I can confirmed this is the actual message.

This is not normal machine, this is MM machine (use in telecom) has dual processor and dual node.

Don't worry about the UX:.. everytime there is an error message it always come with UX: ... like ls error

example:
UX:ls: ERROR: Cannot access blah: No such file or directory

Thanks for all the reply