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

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 4803

Trending Articles