summaryrefslogtreecommitdiff
path: root/srikant
diff options
context:
space:
mode:
authorttt2017-05-13 00:29:47 +0530
committerttt2017-05-13 00:29:47 +0530
commitabf599be33b383a6a5baf9493093b2126a622ac8 (patch)
tree4c5ab6e0d935d5e65fabcf0258e4a00dd20a5afa /srikant
downloadSBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.gz
SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.bz2
SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.zip
added all server files
Diffstat (limited to 'srikant')
-rw-r--r--srikant/all_notworking_logs.txt7
-rw-r--r--srikant/autologin.sh19
-rw-r--r--srikant/map_machine_ids.txt36
-rw-r--r--srikant/srikant.sh7
-rw-r--r--srikant/working.txt32
5 files changed, 101 insertions, 0 deletions
diff --git a/srikant/all_notworking_logs.txt b/srikant/all_notworking_logs.txt
new file mode 100644
index 0000000..95b2328
--- /dev/null
+++ b/srikant/all_notworking_logs.txt
@@ -0,0 +1,7 @@
+Boot I
+------
+17, 19, 28, 31
+
+Boot II
+-------
+10, 17, 18, 23
diff --git a/srikant/autologin.sh b/srikant/autologin.sh
new file mode 100644
index 0000000..fdc7a17
--- /dev/null
+++ b/srikant/autologin.sh
@@ -0,0 +1,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
diff --git a/srikant/map_machine_ids.txt b/srikant/map_machine_ids.txt
new file mode 100644
index 0000000..00ab8b7
--- /dev/null
+++ b/srikant/map_machine_ids.txt
@@ -0,0 +1,36 @@
+13=/dev/ttyUSB35
+2=/dev/ttyUSB34
+16=/dev/ttyUSB33
+5=/dev/ttyUSB32
+14=/dev/ttyUSB31
+15=/dev/ttyUSB30
+12=/dev/ttyUSB29
+35=/dev/ttyUSB28
+31=/dev/ttyUSB27
+30=/dev/ttyUSB26
+28=/dev/ttyUSB25
+36=/dev/ttyUSB24
+29=/dev/ttyUSB23
+26=/dev/ttyUSB22
+32=/dev/ttyUSB21
+18=/dev/ttyUSB20
+25=/dev/ttyUSB19
+27=/dev/ttyUSB18
+19=/dev/ttyUSB17
+22=/dev/ttyUSB16
+23=/dev/ttyUSB15
+17=/dev/ttyUSB14
+24=/dev/ttyUSB13
+1=/dev/ttyUSB12
+8=/dev/ttyUSB11
+4=/dev/ttyUSB10
+9=/dev/ttyUSB9
+3=/dev/ttyUSB8
+10=/dev/ttyUSB7
+11=/dev/ttyUSB6
+34=/dev/ttyUSB5
+33=/dev/ttyUSB4
+20=/dev/ttyUSB3
+21=/dev/ttyUSB2
+7=/dev/ttyUSB1
+6=/dev/ttyUSB0
diff --git a/srikant/srikant.sh b/srikant/srikant.sh
new file mode 100644
index 0000000..767129f
--- /dev/null
+++ b/srikant/srikant.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+echo "Removing all pyc file"
+find ../ -iname \*.pyc -exec rm -rfv {} \;
+
+service apache2 restart
+#service mysql restart
diff --git a/srikant/working.txt b/srikant/working.txt
new file mode 100644
index 0000000..f0b322e
--- /dev/null
+++ b/srikant/working.txt
@@ -0,0 +1,32 @@
+suser1
+suser2
+suser3
+suser4
+suser5
+suser6
+suser7
+suser8
+suser9
+suser10
+suser11
+suser12
+suser13
+suser14
+suser15
+suser16
+suser17
+suser18
+suser19
+suser20
+suser21
+suser22
+suser23
+suser24
+suser25
+suser26
+suser27
+suser28
+suser29
+suser30
+suser31
+suser32