terminal question

Jay R. Ashworth jra at baylink.com
Wed Jul 7 09:45:00 PDT 2004


On Wed, Jul 07, 2004 at 12:15:35PM -0400, Courtney wrote:
> I need to have a way to capture the terminal a user is on-from that I can
> determine where to print report(s) etc...problem is that they use the same
> login so I cannot use @id...
> 
> We are on SCO Unix...

You can USER /bin/tty to get the tty name, but if they're on via the
network, that won't tell you enough.  Alas, finding out enough can be
difficult.

sshd puts the source IP address in the environment, but telnetd does
not; you may need to pry the address out of the output of who, with the
appropriate options.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

	"You know: I'm a fan of photosynthesis as much as the next guy,
	but if God merely wanted us to smell the flowers, he wouldn't 
	have invented a 3GHz microprocessor and a 3D graphics board."
					-- Luke Girardi


More information about the Filepro-list mailing list