first commit
This commit is contained in:
17
scripts/command_loop.sh
Normal file
17
scripts/command_loop.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILE=$1
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "Syntax: ./$(basename $0) <file name>"
|
||||
exit
|
||||
fi
|
||||
|
||||
for host in $(cut -d ":" -f2 ${FILE})
|
||||
do
|
||||
whois $host
|
||||
|
||||
#ssh -n root@$host "vgdisplay"
|
||||
|
||||
done
|
Reference in New Issue
Block a user