File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.
46
46
You may also use C < Proc > to capture the PID, send signals to the application,
47
47
and check the exitcode.
48
48
49
- my $crontab = run 'crontab' '-l';
49
+ my $crontab = run 'crontab', '-l';
50
50
if $crontab.exitcode == 0 {
51
51
say 'crontab -l ran ok';
52
52
}
@@ -64,10 +64,10 @@ ability to send signals to that program.
64
64
# Get ready to run the program
65
65
my $log = Proc::Async.new('tail', '-f', '/var/log/system.log');
66
66
$log.stdout.tap(-> $buf { print $buf });
67
- $log.stderr.tap(-> $buf { $*ERR.print $buf });
67
+ $log.stderr.tap(-> $buf { $*ERR.print( $buf) });
68
68
69
69
# Start the program
70
- my $done = $proc .start;
70
+ my $done = $log .start;
71
71
sleep 10;
72
72
73
73
# Tell the program to stop
You can’t perform that action at this time.
0 commit comments