in reply to Re^2: Controlling a terminal
in thread Controlling a terminal
which will send a RETURN into the pseudo terminal (when run as root, anyhow).use warnings; use strict; use constant TIOCSTI => 29719; my $fd; my $c="\n"; open($fd, ">>", "/dev/pts/30") || die "Could not open: $!"; my $val=ioctl($fd, TIOCSTI, $c); print "not ok\n" unless ($val);
Thanks for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^n: Controlling a terminal
by LAI (Hermit) on Jan 22, 2003 at 16:20 UTC |