01:13 librasteve_ left 03:54 kjp left 03:55 kjp joined 05:16 stanrifkin joined 05:35 stanrifkin left 08:03 samebchase left 09:02 snonux left 09:47 snonux joined 10:20 Some-body_ joined 10:22 DarthGandalf left 10:23 Some-body_ is now known as DarthGandalf 11:58 samebchase joined
disbot6 <neekotism> How can I run commands through raku? 13:10
<librasteve> you mean issue a command from your raku code? 13:37
<librasteve> how about run? or maybe qx|cmd\ ? 13:38
<librasteve> oops that backwhack should be a |
13:41 librasteve_ joined
disbot6 <neekotism> Shell seems to work. I'm curious to how else you can do this. 13:41
<librasteve> what problem are you trying to solve? 13:44
<librasteve> if mainly curiousity, then the docs are pretty comprehensive...
<neekotism> Nothing. I'm just automating a small task. 13:46
14:56 stanrifkin joined 15:15 stanrifkin left 16:23 arkiuat joined
arkiuat shell and run both return Proc objects, the first involving a shell and the second just running the command directly with no shell. 16:24
The qqx and qx quoting constructs run a command respectively with variable interpolation and without, and return the command's output.
Those are all the possibilities that come to mind at the moment, although you can do more elaborate things with Proc::Async 16:25
18:18 arkiuat left 18:30 arkiuat joined 20:51 librasteve_ left 22:23 arkiuat left 22:37 arkiuat joined