Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
Hint: I also mad an octave docset for Dash: https://github.com/obstschale/octave-docset
#!/bin/sh | |
# This is a skeleton of a bash daemon. To use for yourself, just set the | |
# daemonName variable and then enter in the commands to run in the doCommands | |
# function. Modify the variables just below to fit your preference. | |
daemonName="DAEMON-NAME" | |
pidDir="." | |
pidFile="$pidDir/$daemonName.pid" |
import sys # import sys | |
sys.path.insert(1, "./lib") # add the lib folder to sys so python can find the libraries | |
import epd2in7b # import the display drivers | |
from PIL import Image,ImageDraw,ImageFont # import the image libraries | |
import time | |
from gpiozero import Button # import the Button control from gpiozero | |
btn1 = Button(5) # assign each button to a variable | |
btn2 = Button(6) # by passing in the pin number |