Slight correction:  I meant to say rm -rf /.<br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 12:21 AM, Jeff Bragg <span dir="ltr"><<a href="mailto:jackofnotrades@gmail.com" target="_blank">jackofnotrades@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would argue that if you're running your script/application with enough privileges for something like rm -rf to work, unless absolutely necessary, maybe that's more of a problem than using system() (or backticks, or whatever).<br>

<br><div class="gmail_quote"><div class="im">On Thu, Aug 16, 2012 at 10:23 PM, Garth Webb <span dir="ltr"><<a href="mailto:garth.webb@gmail.com" target="_blank">garth.webb@gmail.com</a>></span> wrote:<br></div><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How is IPC::Run safer than system?  Also he doesn't need to communicate with the script; he just need to run Ruby code, which he is not familiar with, from Perl, which he is familiar with.  IPC::Run seems like overkill for this.<br>


<br><div class="gmail_quote">On Thu, Aug 16, 2012 at 8:32 PM, Kevin Frost <span dir="ltr"><<a href="mailto:biztos@me.com" target="_blank">biztos@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div bgcolor="#FFFFFF"><div>Try IPC::Run - that system() below is pretty dangerous if you don't strictly control the vars.</div><div><br></div><div>my $var2 = '; /bin/rm -rf .';<br><br><div><br></div>-- frosty</div>

<div><div>
<div><div><div><br>On Aug 16, 2012, at 16:04, Garth Webb <<a href="mailto:garth.webb@gmail.com" target="_blank">garth.webb@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>Try:</div>
<div><br></div><div>  system("script.rb $var1 $var2");<br><br>Sent from my iPad</div><div><br clear="all"></div></div></blockquote></div></div></div></div></div></blockquote></div></blockquote></div></div><div class="HOEnZb">
<div class="h5">-- <br>There Are More Than Two Ways To Do It<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>There Are More Than Two Ways To Do It<br><br>