12 lines
484 B
Plaintext
12 lines
484 B
Plaintext
crontab -e
|
|
@reboot /usr/bin/motion
|
|
@reboot /usr/bin/motion >> /home/christian/WebControl/logs/motionlogs.txt 2>&1
|
|
@reboot sh /home/christian/WebControl/webcontrol-launch.sh >> /home/christian/WebControl/logs/log.txt 2>&1
|
|
|
|
-----------
|
|
|
|
sudo visudo
|
|
christian ALL=(ALL) NOPASSWD: /sbin/reboot
|
|
christian ALL=(ALL) NOPASSWD: /usr/bin/pkill
|
|
christian ALL=NOPASSWD: /usr/bin/python3 /home/christian/WebControl/main.py
|
|
christian ALL=NOPASSWD: /usr/bin/motion |