diff --git a/contrib/check_axis.sh b/contrib/check_axis.sh new file mode 100644 index 00000000..e97d4cd6 --- /dev/null +++ b/contrib/check_axis.sh @@ -0,0 +1,93 @@ +#!/bin/sh + +box=$1 +port=$2 +usr=$3 +pass=$4 + +if [ ! "$#" == "4" ]; then + echo -e "\nYou did not supply enough command line arguments. \nUsage: ./check_axis.sh \n \nCheck_axis.sh checks the status of LPT ports on Axis print servers. \nIt was written by Tom De Blende (tom.deblende@village.uunet.be) in 2002. \n" && exit "3" +fi + +tempfile=/tmp/status-$box.tmp +exit="3" + +ftp -in $box &>/dev/null <