Bash script that is controlling a lego StarGate