View loadTestScript.py
import datetime
import os
# Local Website: http://127.0.0.1/var/website/html
website = str(input("Enter the URL of the website you want to test: "))
os.system('ab -n 1000 -c 5 '+ website + ' > LoadTest.txt')
infile = 'LoadTest.txt'
View pingScript.sh
@ echo off
echo Testing local connectivity
ping 192.168.1.102 > nul
if errorlevel 1 goto :ERRORLocal
goto :LocalSuccess
:TRYRemote
echo Testing remote connectivity
ping 8.8.8.8 > nul
if errorlevel 1 goto :ERRORRemote
View addUsers.py
"""
Author: Ahad Sheriff
Description:
Python script to add users to Linux groups. You can easily change the content
of this script to fit your needs.
Sample CSV file that I used to test is
included as `sampleAccounts.csv`
Data:
The data in the csv file must be of the form:
"Full Name", "Office Number", "Phone Extension #", "Department Name"