O monks greater than I,
Is there a standard utility that sends its STDIN to /dev/tty and sends /dev/tty to its STDOUT)?
To clarify my meaning; the following perl script does the job:
#!/usr/bin/perl use strict; if (my $pid = fork) { open TTY, "</dev/tty" or die $!; print while <TTY>; waitpid $pid, 0; } else { open TTY, ">/dev/tty" or die $!; select TTY; print while <>; }
I hope to find such a utility to give to the "command" parameter of IPC::Open2::open2, for debugging purposes.
Thanks,
~ Irrelevant
In reply to dancing with /dev/tty by Irrelevant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |