Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Using system (); with Strawberry Perl

by swl (Parson)
on Nov 25, 2021 at 00:09 UTC ( [id://11139092]=note: print w/replies, xml ) Need Help??


in reply to Using system (); with Strawberry Perl

Most of your utilities are from unix but are not available on windows. Cygwin provides these as it is a unixy platform and hence they are available when you run perl under cygwin. When you use Strawberry perl it is under windows and thus any calls via command will be sent to the windows cmd shell, which then does not know about the utilities you are calling, or your syntax.

You could look at installing the Perl Power Tools which will give access to some of the utilities, but you still need to modify your syntax so it will work under windows.

In the end it will probably be simpler to translate it all into perl code anyway, as the examples you show can all be done in perl pretty easily, and quickly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-25 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found