Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What should I know about "secure" system()?

by Riales (Hermit)
on Apr 18, 2012 at 17:30 UTC ( #965749=note: print w/ replies, xml ) Need Help??


in reply to What should I know about "secure" system()?

The second one doesn't work because qw returns a quoted list - so you're actually trying to execute this:

system('java, '-jar', '~/src/Project-X_01.0/ProjectX.jar', '-demux');

I think you meant to do this (which should work):

system(q#java -jar ~/src/Project-X_01.0/ProjectX.jar -demux#);

Edit: My apologies. TIL system also takes a list.


Comment on Re: What should I know about "secure" system()?
Select or Download Code
Replies are listed 'Best First'.
Re^2: What should I know about "secure" system()?
by Anonymous Monk on Apr 18, 2012 at 19:34 UTC

    Edit: My apologies. TIL system also takes a list.

    And that would be the secure form of invocation I was talking about =)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-29 06:09 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 (260 votes), past polls