[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to tell if I'm logged on from console?



On Wed, May 13, 1998 at 06:58:45AM -0400, Kenneth Sims wrote:
> Will,
> 
> I think Mr. Moffatt is on the right track. Won't `tty` actually be ttyp# if
> you are connected via ethernet? Similarly, I think it will be different when
> you are connected via serial port.
> 
> I've used: x = `tty | grep 'tty[012345]'` to do exactly what you are 
> asking about. 

I've been trying to setup my dad's account to do just that, but since I know
nothing of bash programming, could someone post an actual (and short) script
to do this?

Attachment: pgpf0RZdTKRWr.pgp
Description: PGP signature


Reply to: