Noticed I have 2 instances of spinpid2 even though none were there before running the script once.
Code:
PID TT STAT TIME COMMAND 19717 v0 Is+ 0:02.04 /usr/local/bin/python /etc/netcli (python3.6) 19718 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 19719 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2 19720 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3 19721 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4 19722 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5 19723 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6 19724 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7 6946 0- S+ 0:00.12 bash /mnt/drive/Scripts/spinpid2.sh 6947 0- I+ 0:00.00 bash /mnt/drive/Scripts/spinpid2.sh 6948 0- I+ 0:00.00 tee -i -a /mnt/drive/Scripts/spinpid2.log 8657 2 Ss 0:00.01 bash 8865 2 R+ 0:00.00 ps