anyway, i am trying to run a script using the crontab, i know crontab is triggering the script because it works fine when i only have 1 line of code in the script file.
I need the code to turn on GPIO 19, and then shut it off after 5 seconds.
Any help is appreciated, please see the code i am trying to use below, GPIO 19 does come on but has to be shut off manually, the last line of code never runs.
Note: I have tried time.sleep(5) < without the spaces
Code: Select all
#!/usr/bin/python
import time
echo "0" > /sys/class/gpio/gpio19/value
time.sleep( 5 )
echo "1" > /sys/class/gpio/gpio19/value