Skip to content

Instantly share code, notes, and snippets.

@arpansolanki
arpansolanki / pinghosts.sh
Created October 30, 2018 22:54
Ping Hosts from a file. Ping every 10 seconds for 1 minute.
#!/bin/bash
# Program name: pinghosts.sh
date
COUNTER=1
while(test $COUNTER -le 6 )
do
cat hosts.txt | while read output
do
echo "Pinging $output"
#ping -c 1 "$output" > /dev/null
@arpansolanki
arpansolanki / cloudformation.template
Created May 3, 2017 01:21
Hello World CloudFormation Template
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "EC2 Template",
"Parameters" :{
"KeyPair" : {
"Description" :"KeyPair Name",
"Type" : "AWS::EC2::KeyPair::KeyName"
},