RadioReference.com Forums

I am successfully monitoring Portland, ME's P25 Phase 1 Public Safety system using op25 running on a Raspberry Pi 3B using a command line of ./portland.sh containing:

#!/bin/bash
/home/pi/scanner/rx.py \
--args 'rtl' \
--gains 'lna:32' \
--fine-tune 430 \
-D cqpsk \
-l http:127.0.0.1:8080 \
-P constellation \
-S 960000 \
-T /home/pi/scanner/trunk.tsv \
-v 1 \
-U \
-2 \
2>stderr.2

I had created a symlink(?) of "scanner"to simplify navigation to the .sh and .tsv files using:

ln -s /home/pi/op25/op25/gr-op25_repeater/apps /home/pi/scanner

I had been opening a Terminal and typing:

cd scanner
./portland.sh

to start monitoring the Portland, ME system.


All is working very well (though I am certainly open to a suggestions regarding the command parameters in use).

I would now like to automatically start op25 upon starting or restarting the Pi3+.

I used crontab -e (no sudo) and added several variations on @reboot including:

@reboot /home/pi/scannerportland.sh > /home/pi/scanner/portland.log 2>&1

@reboot /home/pi/op25/op25/gr-op25_repeater/apps/portland.sh > /home/pi/op25/op25/gr-op25_repeater/apps/portland.log 2>&1

@reboot /bin/sleep 30; bash /home/pi/op25/op25/gr-op25_repeater/apps/portland.sh >> /home/pi/op25/op25/gr-op25_repeater/apps/portland.log

Nothing has succeeded in automating the start of op25.

I can do the

cd scanner
./portland.sh

and op25 starts and runs as normal.

I am a relative novice to Linux and suspect there is some faulty syntax that is preventing this from working.

Can anyone point me the the right direction?

Thanks!

Glenn
Top