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 |
In Section
Seekers of Perl Wisdom