Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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
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 wandering the Monastery: (16)
As of 2014-09-16 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (32 votes), past polls