New answers tagged

0

There is no need to use sudo within the root crontab. Give the full path to the commands in the crontab.


0

The JP command jumps on greater than or equal to zero. It's of no use in checking a GPIO level as 0 and 1 are treated the same. Change JP to JNZ.


1

Create a folder on your exFAT drive and write logs to that folder. That way, when the drive is not mounted, the folder will not exist and thus no files could be created in it. A similar effect could be achieved with permissions: forbid the user running the script to create files in the mount point. When the drive is mounted, the mount point will be hidden ...


Top 50 recent answers are included