Posted on 2005-07-21 14:01:25-07 by secem
unable to determine remote shell
I am testing the IPC::session module for feasibility of use. The test I am running is very simple. use IPC::Session; my $session = new IPC::Session("rsh xxx",30); my $rc=$session->send("/bin/hostname"); print $session->stdout(); print "RC $rc\n"; When I try to run this, the following error message presents. unable to determine remote shell I am running this on a SunOS xxx 5.8 Generic_108528-22 sun4u sparc SUNW,Sun-Fire-880 machine.
Any ideas?
Direct Responses: 773 | Write a response
Posted on 2005-07-21 17:15:55-07 by secem in response to 770
Re: unable to determine remote shell
It is worse than previously stated. It is an intermittant problem. Usually it fails trying to determine the shell type, but ocassiona +lly it gets past that point only to fail later timingout waiting for stdout. Looking at this with debu +g, shows that it fails to determine what shell type it is because the output from the echo;echo bsherrno=$? command is never seen on stdout. I do see the echo of the command being entered, but not the outpu +t. I.e. I am not seeing bsherrno=0 on the stdout. The few times that it does get past this point in th +e code, I do see the bsherrno=0 in stdout. I did determine that if I remove my .profile, it does not fail to determine the shell type as often +. Another clarifying point. I am using ksh as my shell. I am assuming that since bsh and ksh both u +se $? to show the return code of the previous command, this should not cause me a problem. The bottom line here is that I have not been able to get this module to successfully work yet.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.