[sf-perl] What language is most like perl?
jackofnotrades at gmail.com
Fri Aug 17 00:22:12 PDT 2012
Slight correction: I meant to say rm -rf /.
On Fri, Aug 17, 2012 at 12:21 AM, Jeff Bragg <jackofnotrades at gmail.com>wrote:
> 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
> On Thu, Aug 16, 2012 at 10:23 PM, Garth Webb <garth.webb at gmail.com> wrote:
>> 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.
>> On Thu, Aug 16, 2012 at 8:32 PM, Kevin Frost <biztos at me.com> wrote:
>>> Try IPC::Run - that system() below is pretty dangerous if you don't
>>> strictly control the vars.
>>> my $var2 = '; /bin/rm -rf .';
>>> -- frosty
>>> On Aug 16, 2012, at 16:04, Garth Webb <garth.webb at gmail.com> wrote:
>>> system("script.rb $var1 $var2");
>>> Sent from my iPad
> There Are More Than Two Ways To Do It
There Are More Than Two Ways To Do It
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm