Initial set of scripts

This commit is contained in:
2015-08-08 21:04:55 -07:00
parent 362f74cd7e
commit 4f119844fd
21 changed files with 577 additions and 0 deletions

28
Bash Scripts/ddstatus.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
PID=$(pidof dd)
main(){
while true;do
clear
if [ ! ${PID} ];then
echo "DD is not running"
exit 0;
elif [[ ${PID} ]];then
kill -USR1 ${PID} > /dev/null
sleep 1
if [[ ! ${PID} ]];then
echo "dd it no longer running"
exit 0;
fi
else
echo "There was an unknown error, exiting..."
exit 0;
fi
done
}
main