in reply to Re: pipe to less crash
in thread pipe to less crash
Okay, thanks. I now added a trap for SIGPIPE and I got an error "can't close: status = -1 at ...". So what do I from there? Also, here is code. Thanks again.
$SIG{PIPE} = 'IGNORE'; open LESS, '|less' or die "unable to start pager"; print LESS $string or die "cant write: $!"; close LESS or die "can't close: status = $?"; system("clear");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: pipe to less crash
by ikegami (Patriarch) on Jul 02, 2011 at 02:31 UTC | |
|
Re^3: pipe to less crash
by Corion (Patriarch) on Jul 01, 2011 at 19:04 UTC | |
by Anonymous Monk on Jul 05, 2011 at 13:47 UTC | |
by Corion (Patriarch) on Jul 05, 2011 at 14:10 UTC |