Is there a better way to get current tty name
- From: godsarmycy@xxxxxxxxx (Yue Chen)
- Date: Tue, 28 Oct 2008 13:51:33 +0800
Hi
I am writing a perl script which need send current tty to another program.
Now i am using external cmd 'tty' and redirect the result to my
variable, such as:
$mytty = `tty`;
Since sometimes 'tty' is not in my PATH, my script is not always
successful. So is there a better perl internal mechanism to get such
variable?
Thank you very much
.
- Follow-Ups:
- Re: Is there a better way to get current tty name
- From: "Yue Chen"
- Re: Is there a better way to get current tty name
- Prev by Date: Re: match and putting in a variable with a single statement
- Next by Date: Re: Is there a better way to get current tty name
- Previous by thread: nested loop
- Next by thread: Re: Is there a better way to get current tty name
- Index(es):
Relevant Pages
|