OSSP CVS Repository

ossp - Difference in ossp-pkg/due/.due/due.term.sh versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/due/.due/due.term.sh 1.3 -> 1.4

--- due.term.sh  2004/10/22 19:32:52     1.3
+++ due.term.sh  2004/10/22 19:53:03     1.4
@@ -79,3 +79,13 @@
     done
 }
 
+#   login/logout tracing
+if [ $SHLVL -eq 0 -a ".$BASH_INTERACTIVE" = .yes ]; then
+    #   shell history annotation
+    echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
+
+    #   interactive messages
+    echo "$HOSTNAME: user $USER ${SSHUSER:+(${SSHUSER:-unknown})}, login at `date`"
+    trap 'echo "$HOSTNAME: user $USER${SSHUSER:+ (${SSHUSER:-unknown})}, logout at `date`"' 0
+fi
+

CVSTrac 2.0.1