Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Expect command output parser sub

by Davewhite (Acolyte)
on Feb 23, 2012 at 12:23 UTC ( #955719=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955719]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2019-07-16 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?