Hello, sorry to bother you again. I followed the instructions, but every time I run the .sh code (below) it says I have a syntax error.RaTTuS wrote:OK ...
from your user account do
sudo sh
[run a root command prompt]
cd /root
nano .bash_profile
type
[[ $(tty) == '/dev/tty1' ]] && /root/runattendance.sh
and ctrl-x - to exit the editor
^ means if I am running on tty1 [i.e. the first terminal] then run the script /root/runattendance.sh
exit ; exit
reboot machine and it should all work
or at least you should be abel to see errors on the screen...
if you need to login again then eihter
ssh in or at the machine then alt-f2 to get to another terminal and login and fix things
W0rmSp17 wrote: while [ 1=1 ];
do ^ <----Right here
if [ ! "$(pgrep attendance.py)" ];
then
/root/leds.sh && cd /root/Attendance/ && /root/Attendance/attendance.py
fi
sleep 10
done
Code: Select all
while [ 1=1 ]
do
if [ ! "$(pgrep attendance.py)" ];
then
/root/leds.sh && cd /root/Attendance/ && /root/Attendance/attendance.py
fi
sleep 10
done