Well... the half of that may be easy... I believe one gets an automatic unlink when one links to a different reflector.
That just leaves the command line to do the linking...
https://amateurradionotes.com/pi-star-n ... inelinking
Or do you mean you need help with what to put in when doing "crontab -e"
command line link/unlink
Re: command line link/unlink
--
AF6VN
Dennis L Bieber
Re: command line link/unlink
I was thinking it should look like:
59 19 * * 1 "pistar-link 024_A"'''
however I am not sure as I have not written any scripts for pi-star before
59 19 * * 1 "pistar-link 024_A"'''
however I am not sure as I have not written any scripts for pi-star before
Re: command line link/unlink
Again, refer to the link in my previous response -- your specification for the reflector is not correct
Then... https://linux.die.net/man/1/crontab and https://linux.die.net/man/5/crontab
I would suggest using
sudo crontab -e
to edit the root user crontab file; that will avoid the need to invoke sudo for each link command /in/ the file. Oh, and you may need to redirect command output to the bit-bucket due to the read-only file system.
--
AF6VN
Dennis L Bieber
Re: command line link/unlink
There are 3 serious errors in your cron job:
1) don't use any quotes ... you have a set of double quotes and 3 single quotes for some strange reason.
2) as AF6VN points out, the reflector argument is incorrect.
3) the $PATH is different in a cron job than it is on the command line, so use the absolute pathname:
Code: Select all
59 19 * * 1 /usr/local/sbin/pistar-link ref024_a && sleep 3540 && /usr/local/sbin/pistar-link ref024_c
Re: command line link/unlink
Thanks, I ended up using this:
59 19 * * 1 root /usr/local/sbin/pistar-link ref024_a
00 21 * * 1 root /usr/local/sbin/pistar-link ref024_c
59 19 * * 1 root /usr/local/sbin/pistar-link ref024_a
00 21 * * 1 root /usr/local/sbin/pistar-link ref024_c