#!/bin/sh ## ## NAUTILUS ## SCRIPT: 00_anyfile_SHOW_ROOT-SESSIONS_from-var-logs-auth-1.sh ## ## PURPOSE: Show the file /var/log/auth.log.1 to show 'root' sessions ## --- previous to the ones in auth.log . ## ## METHOD: This log file is shown in an text-viewer of the user's ## choices. ## ## HOW TO USE: In Nautilus, select ANY file in ANY directory. ## Then right-click and choose this script to run (name above). ## ########################################################################### ## Created: 2010may04 ## Changed: 2011may11 Get 'nautilus-scripts' directory via an include script. ## Changed: 2012may11 Changed script name in comments above and touched up ## the comments. Changed some indenting below. ####################################################################### ## FOR TESTING: (show statements as they execute) # set -x LOGFILE="/var/log/auth.log.1" ############################## ## Show the 'auth' log file. ############################## ## . $HOME/.gnome2/nautilus-scripts/.set_VIEWERvars.shi . $HOME/.freedomenv/feNautilusScripts/set_DIR_NautilusScripts.shi . $DIR_NautilusScripts/.set_VIEWERvars.shi $TXTVIEWER "$LOGFILE"