Open Waiker opened 1 year ago
Hello. I'm trying to send a message using the pocsag protocol using python. I check with the PDW utility - the number is not displayed
python code:
import os import array as arr numbers = ['681572','635836','2017596'] command = F'echo -e "{numbers[0]}:{numbers[0]}" | sudo ./pocsag -f 153280000 -r 1200 -b 3' os.system(command)
PDW:
But if I use manual command entry, PDW recognizes the address.
echo -e "123456:681572" | sudo ./pocsag -f 153280000 -r 1200 -b 3
What is the problem?
must be some weirdness with how python os.system() passes arguments
Either remove the "-e" or replace echo with /bin/echo and it seems to work.
Hello. I'm trying to send a message using the pocsag protocol using python. I check with the PDW utility - the number is not displayed
python code:
PDW:
But if I use manual command entry, PDW recognizes the address.
echo -e "123456:681572" | sudo ./pocsag -f 153280000 -r 1200 -b 3
What is the problem?