dda
asked on
Getting tty name from script
How can I determine what is the current tty name? The only way I know is to issue "system("tty") > somefile" and read the file afterwards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
#also:
use POSIX;
$tty=POSIX::ttyname(2);
use POSIX;
$tty=POSIX::ttyname(2);
ASKER