Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
[erix]: it an invite to pull, as I understand it
[Discipulus]: Concave or convex?
[Discipulus]: who make the invitation? the program?!?
[choroba]: it's historical
[erix]: pull requests
[choroba]: originally, you sent a pull request to someone by email, i.e. you asked them to pull from your repo
[Discipulus]: if is the author of a patch, is more like a 'request to push' into rather than a pull request..
[choroba]: as it's considered unpolite to push to someone else's repo
[choroba]: and in fact, you don't push into the target repo, you push into your branch of your fork
[choroba]: the maintainer of the upstream repo than "merges" the pull request, i.e. they pull from your fork into the upstream

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-05-27 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?