Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do I execute a list of Unix commands from inside a perl program

( #6266=categorized answer: print w/ replies, xml ) Need Help??

Q&A > network programming > How do I execute a list of Unix commands from inside a perl program contributed by btrott

With extreme care.

If you must do this, look at the system and exec commands in order to actually execute the commands. Pay particular attention to the multi-argument forms of both those functions, and use them, if possible--they're more secure.

Also, read perlsec and run in taint mode (-T), and do security checks on the commands that the server receives.

Comment on Answer: How do I execute a list of Unix commands from inside a perl program
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-07-03 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls