PDA

View Full Version : what is the reason for "Must be attached to terminal for 'am I' option"


murajashekar2003
September 18th, 2007, 05:08 AM
Hi Frenz,

I have a written a simple Perl program that Communicates with another host on the network.

I use rsh [Passwordless rsh login enabled between the systems.]

I get the Following error....

I was wondering why an error of this type appears..

Must be attached to terminal for 'am I' option

Please clarify me..

thanks in advance
Rajasekar

PaulFr
September 18th, 2007, 05:33 AM
Check your startup file (.bashrc, .cshrc, etc.) for the user account on the machine on which the rsh command is executing, for a who am i command - that cannot run on a remote command, it requires an actual tty terminal association. Remove that from your startup file and I think your error messages will go away.