I think I found the best solution here -- http://linux.die.net/man/4/pts . ptsname(4) is the answer to this problem.
I think I found the best solution here -- http:// linux.die. net/man/ 4/pts . ptsname(4) is the answer to this problem.