Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 1996 09:38:33 GMT
From:      "Jay L. West" <jlwest@tseinc.com>
To:        freebsd-questions@freebsd.org
Subject:   parallel logon solution correction
Message-ID:  <199601040938.JAA04026@bsd.tseinc.com>

next in thread | raw e-mail | index | archive | help
When my post on the parallel logon problem hit the mailing list (and copied
back to me) I noticed I left out part of the statement (that's what happens
when I type from memory rather than printing out the darn script :) ). The
correct ppplogin script is:

#!/bin/sh -
if [ `who | cut -d\  -f1 | grep $(who am i|cut -d\  -f1) | wc -l` -gt 1 ]; then
        echo Already logged on.
        exit
fi
/usr/sbin/ppp -direct `tty|cut -d/ -f3`

I inadvertently left out the grep portion (which would not make your users
very happy). Sorry about the omission.

Jay L. West




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601040938.JAA04026>