Re: List currently logged on users

2014-09-15 Thread Michael Neumann
Am 12.09.2014 um 17:02 schrieb Michel Blanc: > > Hello, > > I use the following handy one liner : > > > lsof -p `pidof imapd|tr ' ' ','` | \ > grep '/var/lib/cyrus/user/.*\.seen$' | \ > awk '{ print $9 }' | sort | uniq | \ > cut -f7 -d'/' | cut -f1 -d'.' > > with cyrus 2.2 under ubuntu server

Re: List currently logged on users

2014-09-12 Thread Patrick Goetz
My bad -- thanks for the correction. I run cyrus and dovecot systems, and inadvertently checked this on a dovecost-based system before posting. On 09/12/2014 10:30 AM, Michel Blanc wrote: > On 12/09/2014 17:20, Patrick Goetz wrote: >> Question: what's wrong with >> >> ps auxw | grep imap

Re: List currently logged on users

2014-09-12 Thread Michel Blanc
On 12/09/2014 17:20, Patrick Goetz wrote: > Question: what's wrong with > > ps auxw | grep imap > > Doesn't this provide an accurate representation of who's logged in? Hi Patrick, On 2.2 it doesn't include the imap username : $ ps auxw | grep imap cyrus25038 0.0 0.1 96104 4332

Re: List currently logged on users

2014-09-12 Thread Patrick Goetz
Question: what's wrong with ps auxw | grep imap Doesn't this provide an accurate representation of who's logged in? On 09/12/2014 10:02 AM, Michel Blanc wrote: > On 12/09/2014 16:04, Michael Neumann wrote: >> Hello, >> >> i am looking for a command that outputs the currently logged on users

Re: List currently logged on users

2014-09-12 Thread Michel Blanc
On 12/09/2014 16:04, Michael Neumann wrote: > Hello, > > i am looking for a command that outputs the currently logged on users of > cyrus imapd, is there something available? > > Best regards > Hello, I use the following handy one liner : lsof -p `pidof imapd|tr ' ' ','` | \ grep '/var/lib/

Re: List currently logged on users

2014-09-12 Thread Eric Luyten
On Fri, September 12, 2014 4:04 pm, Michael Neumann wrote: > Hello, > > > i am looking for a command that outputs the currently logged on users of cyrus > imapd, is there something available? Michael, Consider processing the contents of the small files in the 'proc' sub-directory, but I'll qui

List currently logged on users

2014-09-12 Thread Michael Neumann
Hello, i am looking for a command that outputs the currently logged on users of cyrus imapd, is there something available? Best regards -- Michael Neumann Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https:/