learning cron command
Posted: Sun Apr 07, 2019 11:48 pm
I want to connect to xrf002a at 7pm on Thursday. If I paste the below command in to the expert->System Cron will it work?
update 20190409
Solved
I used the below website to generate the time and dates.
https://crontab-generator.org/
Thanks for all help I was able to do it with the following.
It does not work when I do it using the expert> crontab in the pi-star interface. I had to SSH in to do it.
type in password for your pi-star
make pi-star read write
Edit the crontab in nano text editor
here is what I pasted in at the bottom
press control+x
press Y
press return
make pi-star read only
reboot
Code: Select all
* 19 * * 4 sudo pistar-link xrf002_a
update 20190409
Solved
I used the below website to generate the time and dates.
https://crontab-generator.org/
Thanks for all help I was able to do it with the following.
It does not work when I do it using the expert> crontab in the pi-star interface. I had to SSH in to do it.
Code: Select all
ssh pi-star@(ip address of pi-star)
make pi-star read write
Code: Select all
rpi-rw
Code: Select all
sudo crontab -e
Code: Select all
# the Young Persons' Net (XRF757A every Sunday at 15:59 PLT with a duration of 40 minutes then return back to ref001c
59 15 * * 0 /usr/local/sbin/pistar-link xrf757_a && sleep 2400 && /usr/local/sbin/pistar-link ref001_c
press Y
press return
make pi-star read only
Code: Select all
rpi-ro
Code: Select all
sudo reboot