diff --git a/PC_CONTROL_CODE/VerySimpleCode/crontab b/PC_CONTROL_CODE/VerySimpleCode/crontab new file mode 100644 index 0000000..3ca4dc0 --- /dev/null +++ b/PC_CONTROL_CODE/VerySimpleCode/crontab @@ -0,0 +1,2 @@ +# Run every minute +* * * * /location/to/bash/simple.sh \ No newline at end of file diff --git a/PC_CONTROL_CODE/VerySimpleCode/simple.sh b/PC_CONTROL_CODE/VerySimpleCode/simple.sh new file mode 100644 index 0000000..d684017 --- /dev/null +++ b/PC_CONTROL_CODE/VerySimpleCode/simple.sh @@ -0,0 +1,9 @@ +#!/bin/bash +for i in {1..59} +do + stty -F /dev/ttyUSB0 speed 38400 cs8 -ixon raw + echo -ne "_shutup 24\n\r" > /dev/ttyUSB0 + sleep 1 +done + +exit