Net::telnet - need to retrieve the exit status

Net::telnet - need to retrieve the exit status

am 23.08.2005 03:00:12 von Anita

Hi,
I have a requirement in which that I have to retrieve both the command
output and the exit status of the command through the Telnet->cmd()
function. Is this possible?

Thanks in advance
Anita

Re: Net::telnet - need to retrieve the exit status

am 02.09.2005 07:13:23 von ced

Anita wrote:
> Hi,
> I have a requirement in which that I have to retrieve both the command
> output and the exit status of the command through the Telnet->cmd()
> function. Is this possible?
>

Presuming a Unix based telnet server:

.... ->cmd( '/path/to/foo; echo $?' );

--
Charles DeRykus