I modified this code to use os.system(“mplayer stream”).
I changed count=10 to count=0 so the script will run continuously, but how can I run scapy so that I don’t have to paste in the code each time and so I can get cron to run it when the computer starts?
Is it possible to do something like scapy file.py at command line or in cron? Of course it seems silly to start scapy and then go press the button.
Thank you very kindly for sharing your work. Although it did take me a few minutes to figure out the nuances of getting scapy working (it won’t work reliably on Raspbian Jesse but will on Ubuntu) It was very quick! I’d say your 10 minutes was right on target!