# This is a sample configuration file for uwatch.

# Comments may appear anywhere and are preceeded by a # mark and continue to
# the end of the line.  Blank lines are ignored.

# Set the message to print when someone enters the system.  Expansion is done
# as follows:
#
# %% Print a % character        %b Print a bell
# %e Print an escape character  %n Print a new line
# %u Print the user name        %h Print the local host name
# %p Print the port (tty)       %r Print the remote host name
# %t Print the current time
in_message %b[%e[32m%8u%e[0m] has entered %h on port %p from %r at %t%n

# Set the message to print when someone leaves the system.  Expansion is done
# in the same manner as in_message.
out_message %b[%e[31m%8u%e[0m] has left %h at %t%n

# Define a program to run when a user logs in.  Expansion is done in the same
# manner as in_message.
in_program echo "[%t] In: %u TTY: %p" >> /tmp/uwatchlog	# /dev/console

# Define a program to run when a user logs out.  Expansion is done in the same
# manner as out_manage.
out_program echo "[%t] Out: %u" >> /tmp/uwatchlog	# /dev/console

# Load a list of names for which to look.
watch_list sample_watch_list

# Do not print things to the screen.
#quiet

# Just print a list of users currently online and exit
#quick

# Do not run in the background
debug

# Set the number of seconds between checks of the system for new logins/outs.
sleep 2

# To kill uwatch when the invoking user logs out, set this.
killonexit

# To not kill uwatch when the invoking user logs out, set this.
#nokillonexit
