in reply to output script to /dev/tty9
I think your problem is that Curses is going to write to STDOUT, so reopen that descriptor rather than opening a new one. If you need the original one save it beforehand.
open( SAVEOUT, ">&STDOUT" ) or die "Can't dup STDOUT: $!\n"; open( STDOUT, ">", "/dev/tty9" ) or die "Can't reopen STDOUT on tty9: +$!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: output script to /dev/tty9
by jbush82 (Novice) on Dec 27, 2006 at 16:20 UTC |