troubleshooting Question

PERL script to instanciate windows executable

Avatar of Alexandre Takacs
Alexandre TakacsFlag for Switzerland asked on
2 Comments1 Solution316 ViewsLast Modified:

I will need so help to create a small Perl script that will get as a parameter a command to execute in a windows shell.

My requirement is that the script should accept two input parameters, the first being the command to execute and the second the parameters to said command.

In other words something like "dir" "*.*" which will in turn do an exec() with the command "dir *.*".

No need to check return value or even command validity.

I guess it's fairly trivial but I'm completely perl un-litterate...

Thanks in advance for your help.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros