You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q STRING "echo $SWITCH_POSITION you won't be able to see the printed output unless your script opens a terminal to print on. I'm assuming you're trying to write the output to a file. In this case, you generally would have to specify where you would like the file saved, something like:
if no location is specified ("echo $SWITCH_POSITION > switch_pos.txt") then the text file will be created in "/" directory which is the top-level root directory. To access it, login to your bash bunnys' command line and type "cd /" then you'll find it there. You'll know you're in the root directory if you do "cd .." and you remain in the same dir.
#!/bin/bash
######## INITIALIZATION ########
LED SETUP
GET SWITCH_POSITION
TEST = $SWITCH_POSITION
Q STRING "echo $SWITCH_POSITION"
Q STRING "echo $TEST"
nothing is returned for the variable SWITCH_POSITION
BashBunny bin directory:
root@bunny:/usr/local/bunny/bin# ls*
ATTACKMODE
Q
bunny_framework
sysfixtime
LED
QUACK
factory_reset_bunny
udisk
The text was updated successfully, but these errors were encountered: