Commit 838d55c3769bc598b27698d46ec1cdfa9e962be4

Authored by grouille
1 parent fa500ebc

MAJ

site/fichiersRPI/fichiersRPI.zip deleted
No preview for this file type
site/fichiersRPI/python.sh 0 → 100755
... ... @@ -0,0 +1,4 @@
  1 +#!/bin/sh
  2 +
  3 +cd $1
  4 +/usr/bin/python3 Rpi_to_server.py
... ...
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 -
... ...
site/fichiersRPI/stop.sh 0 → 100755
... ... @@ -0,0 +1,4 @@
  1 +#!/bin/bash
  2 +
  3 +pwd=$(pwd)
  4 +crontab -l | grep -v $pwd | crontab -
... ...