in reply to Need help on perl Expect Module
G'day sriram83.life,
Without knowing anything about execute_command(), or the module where it is defined, any answer will involve a lot of guesswork; however, my gut feeling is that Expect is unnecessary.
If the module is a core or CPAN module, provide a link; otherwise, provide the code.
Why are you circumventing execute_command()'s prototypes? Perhaps it's expecting an argument to do what you want. If you don't understand any of that, see perlsub.
I'd probably just use appropriate options for unzip and gunzip such that those commands do what you want. (Options often vary between OSes: see the manpages on your OS to find the correct ones for you.)
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help on perl Expect Module
by sriram83.life (Acolyte) on Apr 23, 2014 at 06:08 UTC |