terminal question
AIT- Mark Comins
mtcomins at delta.aperion.com
Wed Jul 7 10:28:56 PDT 2004
On Wed, 7 Jul 2004, Bob Stockler wrote:
> On Wed, Jul 07, 2004 at 12:45:00PM -0400, Jay R. Ashworth wrote:
> | 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.
>
> When /bin/tty is executed by the USER command it is
> _not_ connected to a terminal (and tells you so).
>
Try putting the following into the /etc/profile file
tty1=`tty|cut -c 6-10`;export tty1
Then $tty1 will have the terminal the user is on.
Mark Comins
mtcomins at aperion.com
> Bob
>
> --
> Bob Stockler - bob at trebor.iglou.com
> Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
> Fully functional (time-limited) demos available by email request (specify OS).
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list