hi.
i have a file "temp" just to store a number
every time a x key is pressed, the number in file increase +1, and every time a y key is pressed, the number in file decrease -1, until 0 (0 is the minimal)
this part is working.
whats left:
when the number in the file change from 1 to 0 the program must to execute a system command (a shellscript) and when the number in the file change from 0 to 1 the program must to execute another system command
the scripts only must be executed when the number change from 0 to 1 and from 1 to 0 (not when change from 1 to 2, 3 > 4, 4 > 5, etc)
but i dont know the best way to do this...