#!/bin/bash # ftpmonitor.sh # A simple script that makes a constantly updating ProFTPd monitor. # # Copyright (C) 2002 Jani Reinikainen. All rights reserved. # You may freely distribute this script as long as this # header remains intact. Selling the code for this script # without prior written consent is strictly forbidden! # Check my website for more legal info and new versions. # devel@reinikainen.net / http://reinikainen.net/ if [ $# ne "1" ]; then echo "Error: Need at least one argument (update interval)" echo "Usage: $0 [secs]" exit fi TRUE=1 while [ $TRUE ] do clear echo -e "ProFTPd activity monitor running. Hit CTRL-C to end this madness.\n\n" ftpwho -v sleep $1 done