[arm-allstar] Cron job

Fred Hillhouse fmhillhouse at comcast.net
Fri Oct 16 09:40:02 EDT 2020


I just learned a little about settings up an automatic job. It was on Raspberry Pi OS so it may be different and it may not apply to your needs.

On the command line, I entered: crontab -e

I had to select the editor and I chose nano since I know a little more about it than others.
At the bottom, I entered the following two lines:
# read every 10 minutes starting at the top of the hour
0,10,20,30,40,50 * * * * /home/pi/ThornwavePy/DCPMRead.py -b CC:03:E6:5D:EE:52 >> /home/pi/ThornwavePy/t10-bb.log 2>&1

Basically, it runs DCPMRead.py every 10 minutes. The -b and following are parameters.

I kind of doubt this is what you need. However, it may be useful to check to see if the applications are running and if they are not, then start or restart. The idea is that if for some reason they stop, they get restarted automatically. I don't know how to accomplish this action.

Fred N7FMH



-----Original Message-----
From: ARM-allstar [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of "Aaron Groover via ARM-allstar"
Sent: Thursday, October 15, 2020 4:52 PM
To: arm-allstar at hamvoip.org
Cc: Aaron Groover
Subject: [arm-allstar] Cron job

So I want MMDVM bridge and analog bridge to run automatically without having to self start it. Becomes a bit of a pain someone’s when I gotta remote into the repeater computer and have to run to sides of putty.

So the question is to make it auto start how would I go about doing this?

Thanks guys!




--



Thank You,



Aaron Groover

(610) 379 6148<tel:(610)%20379%206148>

K3ALG at outlook.com<mailto:K3ALG at outlook.com>



The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

**This message has been composed on a mobile application. Please excuse any grammatical errors**
_______________________________________________

ARM-allstar mailing list
ARM-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the ARM-allstar mailing list