Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965749]
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.
[ambrus]: So now when I choose what motherboard to buy for my new home computer, I have one more specific property to guide me. Useful, because there's so many different boards to choose from.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-01-16 19:36 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.