Files
jitty-scripts/ddstatus.sh
T

27 lines
312 B
Bash
Executable File

#!/bin/bash
PID=$(pidof dd)
main(){
if [ -z "${PID}" ];then
echo "DD is not running"
exit 0;
fi
while true;do
clear
PID=$(pidof dd)
if [ -z "${PID}" ];then
echo "dd is no longer running"
exit 0;
fi
kill -USR1 ${PID} > /dev/null 2>&1
sleep 1
done
}
main