Re: need tty in 4gl
Posted in 1995
> From: john@alpha.alphamed.com () > > Need c subroutine which returns current users tty... > > from '4gl' - call get_tty() returning v_tty # get current user's tty > v_tty char(15) # current user's tty > > ie. subroutine would return tty02 > > Any help would be appreciated ... thanks in advance > john@alphamed.com Why do you want c code? We capture the tty in an environment variable at login with a simple unix command and then use getenv in the 4gl. This approach is simple, requires no extra compilation, makefiles, or any hard study to understand what the programmer was trying to do. Or maybe you just like it that way... ;) Sealed with a KISS, __________________________________________________________________ | Clem Akins Standard Disclaimers Apply | |Reynolds Metals Co, Alloys Plant "Climb High, Cave Deep!" | | Muscle Shoals, Alabama USA cwakins@leia.alloys.rmc.com | |________________________________________________________________|