Skip to content

Instantly share code, notes, and snippets.

@sugar700
Created August 8, 2012 13:32
Show Gist options
  • Select an option

  • Save sugar700/3295055 to your computer and use it in GitHub Desktop.

Select an option

Save sugar700/3295055 to your computer and use it in GitHub Desktop.
[root@minefield evalbot]# time perl -MIPC::Run=run,timeout -E'my ($out, $err); run ["su", "-c", "lang/perl", "sandbox"], \"print 42", \$out, \$err; say $out'
42
real 0m0.308s
user 0m0.068s
sys 0m0.179s
[root@minefield evalbot]# time perl -MIPC::Run=run,timeout -E'my ($out, $err); run ["su", "-c", "lang/perl", "sandbox"], \"print 42", \$out, \$err, timeout 50; say $out'
42
real 0m51.350s
user 0m0.061s
sys 0m0.180s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment