in reply to Incorrect value 0 reported in command execution return value variable $?, when trying with expect->send command

You are printing the value of *Perls* $?, and that will be 0. If you want the shell's, $?, you must make sure Perl doesn't get its grubby hands on it. Use single quotes, a backslash, or write it as "\x24?".
  • Comment on Re: Incorrect value 0 reported in command execution return value variable $?, when trying with expect->send command
  • Select or Download Code