Cron Jobs

Post your tips and tricks here
Post Reply
w1tcc
Posts: 4
Joined: Sun May 31, 2020 8:39 pm

Cron Jobs

Post by w1tcc » Fri Jul 03, 2020 9:09 pm

Cron jobs in V4.1.2 are working well now that Andy has added all the scripts necessary to connect in all the modes.
The simplest d-star example would be to go to the telnet console and type in:
sudo pistar-link ref030_c
to unlink type: sudo pistar-link unlink
for YSF it's: sudo pistar-ysflink ysf21080
for BM it's: sudo pistar-bmapi addtg 3100 0
for TGIF it's: sudo pistar-tgifapi link 31665 0

Type in the script name alone to see what all the options are.
Other modes are available such as NXDN and P25.

Automatically connecting to weekly nets makes these command line options useful. First backup your pistar config and if possible your SD card just in case. Next go to the pistar dashboard -> Configuration -> Expert -> System Cron What you will see is the existing system wide cron job. After the last line which currently ends with "/etc/cron.monthly" add and edit the following:

Code: Select all

# Connect to BM 3100 default timeslot at 16:15 then delete at 16:20 on Friday the 5 day of the week
# The hash is a comment within the file.  Command line start with: MIN HOUR DOM MON DOW USER COMMAND
15 16 * * 5   root  pistar-bmapi    addtg 3100 0
20 16 * * 5   root  pistar-bmapi    deltg 3100 0
Followed by a CR then press -> Apply Changes Go back to the admin dashboard to watch and listen.

Next is another example for auto starting a Net at 10pm eastern local time

Code: Select all

#Nebraska D-Star Net on Thurs.
00 22 * * 4   root pistar-link        ref073_c 
59 22 * * 4   root pistar-link        unlink
Third example:

Code: Select all

#Test America link on YSF Sunday night 8pm for 15 min
00 20 * * 0   root pistar-ysflink     ysf21080  
15 20 * * 0   root pistar-ysflink     unlink
For duplex hotspots BM and TGIF the timeslot will be 1 or 2 not 0 and the connections will be static.
Have fun
Tim C

Post Reply