5 # Copyright (C) 2009 Trend Micro Inc.
8 # This program is a free software; you can redistribute it
9 # and/or modify it under the terms of the GNU General Public
10 # License (version 2) as published by the FSF - Free Software
14 source "agentless/main.exp"
16 # SSH to the box and pass the directories to check
20 send_user "\nERROR: Opening connection: $loc_error.\n"
28 send "for i in `find $args 2>/dev/null`;do tail \$i >/dev/null 2>&1 && md5=`md5 \$i | cut -d \"=\" -f 2|cut -d \" \" -f 2` && sha1=`sha1 \$i | cut -d \"=\" -f 2|cut -d \" \" -f 2` && echo FWD: `stat -f \"%Dz:%Dp:%Du:%Dg\" \$i`:\$md5:\$sha1 \$i; done; exit\r"
33 send_user "\nERROR: Timeout while running commands on host: $hostname .\n"
37 send_user "\nINFO: Finished.\n"