Benutzer-Werkzeuge

Webseiten-Werkzeuge


hardware:controllers:youless

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
hardware:controllers:youless [2017/06/02 08:40]
tiedi
hardware:controllers:youless [2018/01/25 16:22]
jau code
Zeile 41: Zeile 41:
 <​code>​sudo nano /​etc/​yl.php</​code>​ <​code>​sudo nano /​etc/​yl.php</​code>​
 the file "​yl.php"​ in the folder "​etc"​ doesn'​t exist before, so you now have created. Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file: the file "​yl.php"​ in the folder "​etc"​ doesn'​t exist before, so you now have created. Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file:
-<code php|yl.php>+<code php yl.php>
 <?php <?php
   /**   /**
Zeile 153: Zeile 153:
 <​code>​sudo nano /​etc/​vzapihelper.php</​code>​ <​code>​sudo nano /​etc/​vzapihelper.php</​code>​
 Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file: Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file:
-<code php|vzapihelper.php>​+<code php vzapihelper.php>​
 <?php <?php
   /**   /**
Zeile 246: Zeile 246:
 <​code>​sudo nano /​etc/​yl.sh</​code>​ <​code>​sudo nano /​etc/​yl.sh</​code>​
 Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file: Insert the following code and press "​STRG"​ +"​X"​ to save an exit the file:
-<​code ​sh|yl.sh> +<​code ​bash yl.sh> 
-#/bin/bash+#!/bin/bash
 while true while true
 do do
Zeile 277: Zeile 277:
 To edit the crontab type To edit the crontab type
 <​code>​ <​code>​
-crontab -e+sudo nano /​etc/​rc.local
 </​code>​ </​code>​
-and add the following line on the bottom of the file:+and add the following line on the bottom of the file, before the line "exit 0":
 <​code>​ <​code>​
-* * * * * /bin/bash /etc/yl.sh+bash /etc/yl.sh&
 </​code>​ </​code>​
-It's very important the under this line is another line which is empty oder you can type a #. If it's not the crontab won't work. 
- 
-{{:​hardware:​controllers:​unbenannt.jpg?​400|}} 
  
 So that's it. now it should work. So that's it. now it should work.
hardware/controllers/youless.txt · Zuletzt geändert: 2018/01/25 16:22 von jau