root/honeyclient/tags/exp/PRE-kindlund-firefox/bin/run.sh

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

Merged active_content branch back into trunk.

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