Skip to content

Instantly share code, notes, and snippets.

@tony-o
Created April 29, 2015 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tony-o/adeb3a9d3288f894e118 to your computer and use it in GitHub Desktop.
Save tony-o/adeb3a9d3288f894e118 to your computer and use it in GitHub Desktop.
tonyo@imac ~/projects/perl6-template-protone$ cat sh.sh; perl6 -e 'my Proc::Async $a .=new("/bin/bash", "sh.sh"); my $p = $a.start; await $p; $p.result.exitcode.say;'
exit 1
256
tonyo@imac ~/projects/perl6-template-protone$ cat sh.sh; perl6 -e 'my Proc::Async $a .=new("/bin/bash", "sh.sh"); my $p = $a.start; await $p; $p.result.exitcode.say;'
exit 2
512
tonyo@imac ~/projects/perl6-template-protone$ cat sh.sh; perl6 -e 'my Proc::Async $a .=new("/bin/bash", "sh.sh"); my $p = $a.start; await $p; $p.result.exitcode.say;'
exit 3
768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment