From f949c93890f6f80ccc328276b1cbba9a4ad16630 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 29 Apr 2009 18:50:47 -0500 Subject: [PATCH] * bin/users, screen-profiles.1: when counting users, count remote ssh sessions Signed-off-by: Dustin Kirkland --- bin/users | 2 +- debian/changelog | 4 +++- screen-profiles.1 | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/users b/bin/users index 27d177eb..789dc1b4 100755 --- a/bin/users +++ b/bin/users @@ -25,4 +25,4 @@ if [ "$1" = "--detail" ]; then exit 0 fi -printf "\005{= wr}%d#\005{-} " `who | wc -l` +printf "\005{= wr}%d#\005{-} " `pgrep -f "sshd:.*@" | wc -l` diff --git a/debian/changelog b/debian/changelog index b03afb3c..2bbfe442 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,10 @@ screen-profiles (1.53) unreleased; urgency=low * screen: some users gripe about the default launched window being called "motd+shell", LP: #369397 * motd+shell, screen: clean up temp file + * bin/users, screen-profiles.1: when counting users, count remote ssh + sessions - -- Dustin Kirkland Wed, 29 Apr 2009 16:11:29 -0500 + -- Dustin Kirkland Wed, 29 Apr 2009 18:49:47 -0500 screen-profiles (1.52-0ubuntu1) karmic; urgency=low diff --git a/screen-profiles.1 b/screen-profiles.1 index 21f0d88a..bcdbd306 100644 --- a/screen-profiles.1 +++ b/screen-profiles.1 @@ -53,7 +53,7 @@ The menu provided by the \fBscreen\-profiles\fP should be self-explanatory. \fBuptime\fP \- the total system uptime since last boot; displayed in the lower bar toward the right in blue text on a grey background -\fBusers\fP \- the number of users logged into the system; displayed in the lower bar toward the right in red text on a grey background with a trailing '#' sign +\fBusers\fP \- the number of users logged into the system via sshd; displayed in the lower bar toward the right in red text on a grey background with a trailing '#' sign \fBwhoami\fP \- the name of the user who owns the screen session; displayed in the upper bar toward the far right in bold black text on a grey background