New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Syntax Question
I'm still a newbie at this.
I have a file called setup.sh
ipaddr=
curl getipaddr.net -s | head -n 1
secret=''blah"
radiusip='YOURRADIUSIPHERE'
echo "$radiusip $secret" >> /etc/ppp/options.pptpd
What I want it to do is add
11.55.22.66 blah to /etc/ppp/options.pptpd
But what ends up happening is it adds
$radiusip $secret
instead of the actual value of those variables.
Can someone help me.
Comments
I can tell you that
should be
The ticks puts the results of that command into the variable ipaddr.
definitely works.
Be aware that in markdown syntax the back tick will be displayed as pre tag.
displays as
And to be honest I couldn't find any problem in the given script.