Date: Wed, 23 May 2001 11:15:51 -0500 From: Lucas Bergman <lucas@slb.to> To: Peter <fbsdq@yahoo.com> Cc: freebsd-questions@freebsd.org, Jason Hunt <jason.hunt@niicommunications.com> Subject: Re: ftpd connections viewable via who Message-ID: <20010523111551.A1870@billygoat.slb.to> In-Reply-To: <SAK.2001.05.23.cnaobbsl@support10>; from fbsdq@yahoo.com on Wed, May 23, 2001 at 09:51:51AM -0600 References: <SAK.2001.05.23.cnaobbsl@support10>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > In OpenBSD you can supply a switch to view who is connected via
> > > ftp using the who command... Is this possible in FreeBSD?
> >
> > No, AFAIK. This works, though:
> >
> > $ ps ax|grep ftpd|grep -v grep|awk -F": " '{print $3}'|egrep -v ^\$
>
> Another thing to try is using the 'last |grep ftp' command,
>
> what this will do is show who was logged into ftp, and if they are
> still logged in...
You're right. This is much less stupid:
$ last | egrep 'ftp.*still logged in$'
Thanks,
Lucas
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523111551.A1870>
