Commit 59091ceaaf51a8fe86406b11cde0d36dd32c1880

Authored by grouille
1 parent 84f58c36

MAJ script.sh lancer.sh

Showing 2 changed files with 6 additions and 5 deletions   Show diff stats
site/fichiersRPI/lancer.sh
@@ -2,4 +2,5 @@ @@ -2,4 +2,5 @@
2 2
3 kill $(cat /var/run/script.pid) 3 kill $(cat /var/run/script.pid)
4 base=`dirname $0` 4 base=`dirname $0`
5 -nohup $base/script.sh & 5 +cd $base
  6 +nohup ./script.sh &
site/fichiersRPI/script.sh
@@ -2,10 +2,10 @@ @@ -2,10 +2,10 @@
2 2
3 echo $$ > /var/run/script.pid 3 echo $$ > /var/run/script.pid
4 4
5 -make clean  
6 -make  
7 -make upload  
8 -python3 Rpi_to_server.py 5 +sudo make clean
  6 +sudo make
  7 +sudo make upload
  8 +sudo python3 Rpi_to_server.py
9 9
10 #while true 10 #while true
11 #do 11 #do