User avatar
thagrol
Posts: 5258
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

STICKY: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 2:51 pm

Number four in an occasional series.
boot.zip
(169.63 KiB) Downloaded 78 times
Also on github: https://github.com/thagrol/Guides
I'm a volunteer. Take me for granted or abuse my support and I will walk away

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

User avatar
neilgl
Posts: 3357
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 3:40 pm

Excellent stuff, thanks.

deepo
Posts: 834
Joined: Sun Dec 30, 2018 8:36 pm
Location: Denmark

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 6:51 pm

That's good work!

katesimon123
Posts: 48
Joined: Sun Jun 13, 2021 2:45 am

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 7:52 pm

Good one, will test it out !!!

RonR
Posts: 2279
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 8:25 pm

A && B || C : Do A, if A succeeds do B. If A failed do C

I believe this should be:

A && B || C : Do A, if A succeeds do B. If A or B failed do C

Code: Select all

root@FreePBX:~# true && true || echo "!"
root@FreePBX:~# true && false || echo "!"
!
root@FreePBX:~# false && true || echo "!"
!
root@FreePBX:~# false && false || echo "!"
!

User avatar
thagrol
Posts: 5258
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 9:28 pm

RonR wrote:
Wed Jun 23, 2021 8:25 pm
A && B || C : Do A, if A succeeds do B. If A failed do C

I believe this should be:

A && B || C : Do A, if A succeeds do B. If A or B failed do C

Code: Select all

root@FreePBX:~# true && true || echo "!"
root@FreePBX:~# true && false || echo "!"
!
root@FreePBX:~# false && true || echo "!"
!
root@FreePBX:~# false && false || echo "!"
!
Probably. Feel free to open an issue in my github.
I'm a volunteer. Take me for granted or abuse my support and I will walk away

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

bls
Posts: 1591
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA

Re: Running A Program At Start UP A Beginner's Guide

Wed Jun 23, 2021 9:40 pm

This is great, thagrol!
Pi tools:
Quickly and easily build customized-just-for-you SSDs/SD Cards: https://github.com/gitbls/sdm
Easily run and manage your network's DHCP/DNS servers on a Pi: https://github.com/gitbls/ndm
Easy and secure strongSwan VPN installer/manager: https://github.com/gitbls/pistrong
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo

strantor
Posts: 7
Joined: Thu Jun 17, 2021 9:17 pm

Re: STICKY: Running A Program At Start UP A Beginner's Guide

Thu Jul 08, 2021 7:20 pm

Very well put together and extremely helpful. Thank you so much for this resource! It got me where I needed to be in minutes, after wasting hours trying to follow other advice.

Return to “Beginners”