Get system command output: Difference between revisions

m
Fix dead documentation urls
(Added Arturo implementation)
m (Fix dead documentation urls)
Line 1,336:
my $p2 = run 'cat', '-n', :in($p1.out), :out;
say $p2.out.slurp-rest;</lang>
See [httphttps://docdocs.raku.org/type/Proc docs] for more info.
 
If you really want to run something in shell and you understand potential security problems, then you can use <code>qx//</code> (interpolates environment variables) or <code>qqx//</code> (interpolates normally). See [httphttps://docdocs.raku.org/language/quoting the docs for more info].
 
<lang perl6>say qx[dir]</lang>
Anonymous user