Loading

Report as inappropriate

Ah, yeah, so you would need to use nano in combination with the sudo command, which will give pi root access. So something like this for the printer_on.sh script:

sudo nano /usr/local/bin/printer_on.sh

... type or paste in the script contents... write out, and exit...

sudo chmod a+rx /usr/local/bin/printer_on.sh

Then you should be able to type 'printer_on.sh' as the pi user, and turn on that pin.