#!/bin/sh # Shows the time since the kiosk X sessions have been reset. # Since "metacity" is the main session program, when that exits, # the session logs out, so the run time of that process is how # long since login. exec ps -o "%u %t" -C metacity | tail +2 | sort echo "" for nn in 01 02 03 04 05 06 07 ; do echo -n "kiosk$nn: " # -o ConnectTimeout=5 ssh -qnTx "uptime@kiosk$nn" || echo "down" done