Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by btrott (Parson)
on Mar 28, 2000 at 00:26 UTC ( #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 - Answer 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?
[Your Mother]: The US government does not attract talent, but grafters and liars and it has been that way for the better part of a century. FEW exceptions.
[erix]: you think it only /looks/ worse this time?
[Your Mother]: HR Clinton was literally threatening Russia. She would have been MUCH more likely to start real trouble.
[Your Mother]: I think there is less decorum this time.
[Your Mother]: We’ve had rapists and thieves and unqualified government. They just had decorum.
[erix]: heh, understatement of the week :)
[erix]: well, I hope you're right
[Your Mother]: Bill Clinton assaulted and raped repeatedly. Even when it was hinted and finally all but proved, no one cared because his sexism, and racism, and killing was decorous.
[Your Mother]: I think Trump might be better specifically because no one respects him so he won't get his way the way the others did.
[Your Mother]: (I certainly did not vote for him and have been an outspoken critic of his for three decades, by the by.)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-01-20 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.