Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6125

Beginners • Re: Defining something at the start.

$
0
0
Thank you!!



I've tried looking this up, but i don't think I am using the right terminology. But lets face it, searching is sometimes more of an art than anything else.

Code:

 #!/bin/bash cec-ctl --tv -Scec-ctl --to 0 --image-view-on #sleep 120wget --no-dns-cache -N -P /home/pi/Videos/MM/ http://thomasventure.com/holodeck/MP8008/MiddleMenuVideo.mp4 -o 8008log.txtsleep 30cvlc -f -L --no-video-title-show /home/pi/Videos/MM/MiddleMenuVideo.mp4sleep 5sudo find /home/pi/Videos/LM/LeftMenuVideo.mp4* -ctime +1 -delete 2&>/dev/nullsudo find /home/pi/Videos/RM/RightMenuVideo.mp4* -ctime +1 -delete 2&>/dev/nullsudo find /home/pi/Videos/MM/MiddleMenuVideo.mp4* -ctime +1 -delete 2&>/dev/nullsleep 5trash-empty
In the code above, you will see in the URL that there is an 8008 and then another one at the end. As I program these, is there a way to define these at the beginning of the script? Something like

Store = 8008

That way I don't have to dig thru the code to change everything that is needed.

Thank you for your help and time.
Chip
https://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-5.html

Statistics: Posted by Chipper2 — Sat Jun 29, 2024 2:23 am



Viewing all articles
Browse latest Browse all 6125

Latest Images

Trending Articles


Practice Sheet of Pronoun References for HSC Students


Download: Alice Chuma – Okondewa


Neem Baba Extra Questions Answer Class 6 English Poorvi


CalCen


Muloraki Au


Mahakal Attitude Status


Love (2015).H264.Italian.English.Ac3.5.1.multisub.iCV-MIRCrew Seed (62)/Leech...


MUSIC STATION – 2017.09.01


Waves Complete v2019.02.14 Incl Emulator-R2R


Students hit streets to save Agriculture College land in city



Latest Images