blob: fdc7a178979518a5f2b8d8911dc9e3c7f0dca59d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
rm working.txt notworking.txt
for each in {1..32};
do
login=$(echo "username=suser$each&password=suser"$each"4229")
output=$(curl --silent --data $login http://vlabs.iitb.ac.in/sbhs/experiment/initiate/) && \
chars=$(echo -n $output | wc -c) &&\
if [ "$chars" -lt 100 ];
then
echo suser$each $output;
echo suser$each >> working.txt
else
echo suser$each ERROR 500;
echo suser$each >> notworking.txt
fi
sleep 0.2 && echo ;
done
|