[K12OSN] Multiple logins ???

David Trask dtrask at vcs.u52.k12.me.us
Tue Sep 21 16:54:39 UTC 2004

"Support list for opensource software in schools." <k12osn at redhat.com> on
Tuesday, September 21, 2004 at 11:33 AM +0000 wrote:
># This user is only allowed a single login instance
>tty=`/usr/bin/tty`     # Get tty to test for multiple login
>if /bin/ps -u $LOGNAME | /bin/grep -v UID | /bin/grep -v "${tty##/dev/}" ;
>       /bin/cat <<-EOM >&2
>       You already have an active session on this system and you are
>       allowed a single session.  This session will now be closed.
>       EOM
>       wait
>       exit

Just curious...should it be  $LOGNAME or $USERNAME

David N. Trask
Technology Teacher/Coordinator
Vassalboro Community School
dtrask at vcs.u52.k12.me.us

More information about the K12OSN mailing list