X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fagentlessd%2Fscripts%2Fssh_generic_diff;fp=src%2Fagentlessd%2Fscripts%2Fssh_generic_diff;h=cc984ffa68f1a39185906d964f6e0b511a5f89ab;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=7b7006a7bf1a5c5a0b71c2e4312407099e7779b5;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b;p=ossec-hids.git diff --git a/src/agentlessd/scripts/ssh_generic_diff b/src/agentlessd/scripts/ssh_generic_diff index 7b7006a..cc984ff 100755 --- a/src/agentlessd/scripts/ssh_generic_diff +++ b/src/agentlessd/scripts/ssh_generic_diff @@ -1,23 +1,19 @@ #!/usr/bin/env expect -# @(#) $Id: ./src/agentlessd/scripts/ssh_generic_diff, 2011/09/08 dcid Exp $ - # Agentless monitoring # # Copyright (C) 2009 Trend Micro Inc. # All rights reserved. -# +# # This program is a free software; you can redistribute it # and/or modify it under the terms of the GNU General Public # License (version 2) as published by the FSF - Free Software # Foundation. - -# Main script. +# Main script source "agentless/main.exp" - -# SSHing to the box and passing the directories to check. +# SSH to the box and pass the directories to check if [catch { spawn ssh $hostname } loc_error] { @@ -25,11 +21,9 @@ if [catch { exit 1; } - source $sshsrc source $susrc - set timeout 600 send_user "INFO: Starting.\n" send_user "\nSTORE: now\n"