Jump to content

Button Script


PixL

Recommended Posts

9 hours ago, PixL said:

I would like to create a script to start a command on pressing the button but then to stop the command when pressing the button again... any ideas?

Create a file in /tmp on the first press. If it exists, stop whatever you want, and remove the file.

That should work :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...