Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Expect command output parser sub

by Davewhite (Acolyte)
on Feb 23, 2012 at 07: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 02: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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://955719]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2023-12-03 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (20 votes). Check out past polls.

    Notices?