Sorry, its late and I'm hungry...
#!/bin/sh
#
# If Pizza is less than 30 minutes old, return "YumYum".
# If Pizza is more than 30 minutes old, return "EwwYuk".
# Can use -mmin for minutes, or -mday for days.
Pizza=`find /path/to/pizza -mmin -30 -print`
YumYum="/path/to/pizza"
EwwYuk=""
if [ "$Pizza" == "$YumYum" ];
then
echo "<result>YumYum</result>"
else
echo "<result>EwwYuk</result>"
fi
<burp>
HTH,
Don
