This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Script will list all instances, all security groups and their rules for desired profile | |
# Before using script, you need to create "profile" file, which is ~/.aws/credentials where you put your AWS keys like this: | |
# | |
# [dev] | |
# aws_access_key_id = ***** | |
# aws_secret_access_key = ***** | |
# | |
# .. and then use it in this script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
da=`date` | |
HOST=127.0.0.1 | |
PORT=8080 | |
#infinite loop | |
#while [ 1 ] | |
#do | |
#try to access tomcat's page | |
RES=`timeout 120 wget -O - -o /dev/null --proxy=off http://${HOST}:${PORT}/isalive.html | awk '{ print $1 }'` |