-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don't try all that silly stuff with pty ownership.  That's not even the
correct way to figure out the current process' terminal!  Just look in
wtmp.  probably the easiest way to do this is to call `who am i`

Then you'll also cover situations not mentioned yet, like a remote xterm.
- --
Sam Vilain, Systems Integrator, Catalyst IT (NZ) Ltd.
phone: +64 4 499 2267        PGP ID: 0x66B25843
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkaBrTEACgkQ/AZAiGayWEPkmwCgzx2/y0oe166Lp01Cql6nZBbB
kfAAn3hMtCPrDUFrJI/DSga14wKJ732F
=ny4R
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to