in reply to Re: return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")
in thread return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")

hi moritz, thanks for looking into this problem! what should the server response be over here? And if this way i cannot get the result waht is required there.. what could be the possible way to get the exit status of the "sh $sDriver" which i executed on the remote machine. Please help !! any help appreciated!
  • Comment on Re^2: return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")

Replies are listed 'Best First'.
Re^3: return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")
by need_help21 (Novice) on Nov 30, 2007 at 05:03 UTC
    I want to thanks BART for his suggestion in CB that the $ sign in "echo $?" should be escaped. This was actually the probelm. Now it has got solved. Thank BART and thanks to all.