Commit 838d55c3769bc598b27698d46ec1cdfa9e962be4
1 parent
fa500ebc
MAJ
Showing
4 changed files
with
13 additions
and
6 deletions
Show diff stats
site/fichiersRPI/fichiersRPI.zip deleted
No preview for this file type
site/fichiersRPI/script.sh
1 | -#!/bin/sh | |
1 | +#!/bin/bash | |
2 | 2 | |
3 | 3 | echo $$ > /var/run/script.pid |
4 | 4 | |
... | ... | @@ -12,8 +12,7 @@ sudo make |
12 | 12 | sudo make upload |
13 | 13 | sudo python3 Rpi_to_server.py |
14 | 14 | |
15 | -#while true | |
16 | -#do | |
17 | -# sleep 5 | |
18 | -# python3 Rpi_to_server.py | |
19 | -#done | |
15 | +pwd=$(pwd) | |
16 | +tps=1 | |
17 | +crontab -l | grep -v $pwd | crontab - | |
18 | +(crontab -l ; echo "*/$tps * * * * $pwd/python.sh $pwd") | crontab - | ... | ... |