foreach $track (@playlist) { print "| Track: $track\n"; unless (open PIPE, "-|") { # I'm the kid $SIG{INT} = 'IGNORE'; exec "ssh $machine \"cat $soundroot/$track\" | mpg123 -"; die "Cannot exec ssh: $!"; } # rest of your loop goes here }
-- Randal L. Schwartz, Perl hacker
In reply to Re: My pipe gets the SIGINT. And I dont want that...
by merlyn
in thread My pipe gets the SIGINT. And I dont want that...
by Sinister
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |