Skip to content

Instantly share code, notes, and snippets.

@vaderj
Last active June 12, 2018 17:03
Show Gist options
  • Save vaderj/3dbcac534e35193ff6bf73514d45c870 to your computer and use it in GitHub Desktop.
Save vaderj/3dbcac534e35193ff6bf73514d45c870 to your computer and use it in GitHub Desktop.
Direwolf Raspberry Pi RasPi startup with Screen rtl sdr #BASH #Linux #pi
#In the dw-start.sh script, change the DWCMD definition to read:
#
#DWCMD="screen -dm -S direwolf bash -c 'rtl_fm -f 144.39M - | direwolf -c sdr.conf -r 24000 -D 1 -'"
#
#
# And then, as that command is ran via cron, you can access that screen via:
#
# screen -r direwolf
#
# If you ctl-c out of the process on the console, you break the process as you are taking over
# its std-in, std-out. Screen just provides the application switching, ctl-c kills the original
# process, screen just helped you bring it to its demise. I hope you are happy
#
# TL;DR:
# screen -dm -S myHandleName ls -lsa AndTheRestOfMyScript
#
# will let you run a command in the background, and to pull it into the foreground:
# screen -r myHandleName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment