root/honeyclient/tags/exp/UP2-kindlund-dynamic_updates/bin/run.sh

Revision 783, 0.6 kB (checked in by kindlund, 1 year ago)

Added CVS tags to all scripts. Added initial uninstall script.

  • Property svn:executable set to *
  • Property svn:keywords set to Id "$file"
Line 
1 #!/bin/bash
2
3 # $Id$
4
5 echo "Starting up Agent - (Hit CTRL-C multiple times to exit.)"
6
7 # Remove all old /tmp/* entries.
8 rm /tmp/* > /dev/null 2>&1
9
10 IP=$(/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -get)
11 echo "IP = $IP"
12
13 while [ $IP = "0.0.0.0" ] ; do
14     /cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -release
15     /cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -renew
16     IP=$(/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -get)
17     echo "IP = $IP"
18     sleep 1
19 done
20
21 ping www.honeyclient.org
22 cd ~/honeyclient && svn update
23
24 while [ true ] ; do
25     sleep 5 && \
26     perl -Ilib bin/StartAgent.pl
27 done
Note: See TracBrowser for help on using the browser.