http://www.perlmonks.org?node_id=955719


in reply to Re: Expect command output parser sub
in thread Expect command output parser sub

This subroutine fails to execute the command if the executed command isn't supposed to return any value ( for example the cd command or mkdir command.

For example if we try to execute the cd <XYZ_Directory> command using this subroutine, the directory change doesn't happen at all.

Any help to make it fucntional for such commands is welcome

Replies are listed 'Best First'.
Re^3: Expect command output parser sub
by Anonymous Monk on Feb 24, 2012 at 07:41 UTC

    Any help to make it fucntional for such commands is welcome

    I would say its impossible so don't use it on such commands, or append ";pwd" so they do print output