B
bjlockie
Create ./channels.conf with the single line:
CBC:539000000:8VSB:49:52:3
This code never gets to 'here3'.
I think because the command ping never finishes (ping is an example
command, there are no switches to make the real command stop).
I've seen similar code working elsewhere.
my $cmd = 'ping google.ca >/dev/null |';
open( ZAP, $cmd ) || die "can't fork: $!";
print $cmd . "\n";
print "here2\n";
while (my $line = <ZAP>) {
print $line;
}
print "here3\n";
CBC:539000000:8VSB:49:52:3
This code never gets to 'here3'.
I think because the command ping never finishes (ping is an example
command, there are no switches to make the real command stop).
I've seen similar code working elsewhere.
my $cmd = 'ping google.ca >/dev/null |';
open( ZAP, $cmd ) || die "can't fork: $!";
print $cmd . "\n";
print "here2\n";
while (my $line = <ZAP>) {
print $line;
}
print "here3\n";