#!/usr/bin/perl # # external.pl (c) 2002 by Benjamin Schweizer # http://www.redsheep.de/ # ####################################################################### # this script is called by 'echolot -X external.pl' # it is given an ip address as $1, a default string as $2 and # its output's first line is the host description # output is "default-yyyy-mm-dd" $date = `date +"%Y-%m-%d"`; chop ($date); print $date;