Re: [CentOS] IPv6 fixed address using ip token

2018-09-28 Thread Mark Milhollan
On Thu, 20 Sep 2018, Mark Milhollan wrote:
>On Thu, 20 Sep 2018, Kenneth Porter wrote:

>> I'm about to publish a fixed IPv6 address and I understand I can use the ip
>> token command to lock the host part of the RA-assigned address to a fixed
>> value. But I can't see an obvious place to configure this. 
>
>It looks like there is no support for IPv6 tokenized identifiers in the 
>existing ifcfg scripting (report an upstream bug?) 

But it looks like the ifcfg-rh module for NetworkManager will use an 
IPV6_TOKEN line, if present, e.g.,

  /etc/sysconfig/network-scripts/ifcfg-ens0:
...
IPV6_TOKEN=::53


/mark
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Step-by-Step Tutorial: How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud

2018-09-28 Thread Yves Bellefeuille
As someone else already noted, "Could you please not post self-
promotional "tutorials" to the list?"

Thanks for your understanding.

-- 
Yves Bellefeuille 
GPG key 837A6134 at http://members.storm.ca/~yan/pgp.asc
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Step-by-Step Tutorial: How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud

2018-09-28 Thread Turritopsis Dohrnii Teo En Ming
Good morning from Singapore,


You can read my step-by-step tutorial on How to Setup Your Own e-Commerce 
Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) 
in Amazon AWS Cloud at any one of my two redundant blogs. My blogs were 
configured in RAID 1 mirroring array.


https://tdtemcerts.wordpress.com/2018/09/29/step-by-step-tutorial-how-to-setup-your-own-e-commerce-online-store-using-woocommerce-3-4-5-wordpress-4-9-8-and-centos-1805-lamp-in-amazon-aws-cloud/


https://tdtemcerts.blogspot.com/2018/09/step-by-step-tutorial-how-to-setup-your.html


Thanks for reading! If there are any mistakes, please do let me know!


===BEGIN SIGNATURE===

Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 30 Oct 2017

[1] https://tdtemcerts.wordpress.com/

[2] http://tdtemcerts.blogspot.sg/

[3] 
https://www.scribd.com/user/270125049/Teo-En-Ming

===END SIGNATURE===
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Testing

2018-09-28 Thread Turritopsis Dohrnii Teo En Ming


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Simple bash question

2018-09-28 Thread Fred Smith
On Fri, Sep 28, 2018 at 09:39:29AM -0400, Jerry Geis wrote:
> I am calling a bash script and passing in somestring that includes a "$"
> 
> myscript   "$plusmore"

myscript '$plusmore' 

should work. note the single quotes.

If you can't use single quotes, I don't know how to use it,, but there
is probably something more arcane that would work, were one a guru.

Have you read thru 'man bash', carefully, looking for informatiion on
quoting?

there is also a document named Advanced Bash Scripting that gives lots
of gory details about doing odd things in Bash that might be helpful.
Google is your friend.

Fred

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us 
Do you not know? Have you not heard? 
The LORD is the everlasting God, the Creator of the ends of the earth. 
  He will not grow tired or weary, and his understanding no one can fathom.
- Isaiah 40:28 (niv) -
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Simple bash question

2018-09-28 Thread Leroy Tennison
Sounds like you're pretty constrained if you can't escape $plusmore so 
alternatives may not be possible either but, if possible, put the contents 
represented by $plusmore in a file and {read,redirect the output from} the file 
in myscript. Another option might be to put the contents represented by 
$plusmore in an environment variable and access that from myscript.  The only 
other option I can think of is to try a different scripting language (awk, 
perl, tcl, python, you-name-it) to try and get around the issue.


Join us
at the 2018 Momentum User Conference!
Register
here
Leroy Tennison
Network Information/Cyber Security Specialist
E: le...@datavoiceint.com
2220 Bush Dr
McKinney, Texas
75070
www.datavoiceint.com
TThis message has been sent on behalf
of a company that is part of the Harris Operating Group of
Constellation Software Inc. These companies are listed
here
.
If you prefer not to be contacted by Harris
Operating Group
please notify us
.
This message is intended exclusively for the
individual or entity to which it is addressed. This communication
may contain information that is proprietary, privileged or
confidential or otherwise legally exempt from disclosure. If you are
not the named addressee, you are not authorized to read, print,
retain, copy or disseminate this message or any part of it. If you
have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the
message.


From: CentOS  on behalf of Anand Buddhdev 

Sent: Friday, September 28, 2018 8:51 AM
To: CentOS mailing list; Jerry Geis
Subject: [EXTERNAL] Re: [CentOS] Simple bash question

On 28/09/2018 15:39, Jerry Geis wrote:

> I am calling a bash script and passing in somestring that includes a "$"
>
> myscript   "$plusmore"
>
> I want to assign in the myscript the $1 arg to something like
> MYTEXT="$1"
>
> when I do that I dont get what I'm expecting. if I do
> MYTEXT='$1'
> I still dont get what I'm expecting.
>
> On the first assignment of MYTEXT I do not want the "$" to be treated as a
> shell variable. I cannot find out how to do that.
>
> I do not have the option of escaping the call to myscipt "\$plusmore". I
> cannot do that.
>
> What am I missing.

You MUST escape the $ in plusmore. If you don't, the calling shell will
try to expand it, and replace it with whatever is in that variable. If
it's not defined, you'll get an empty string. All this happens *before*
myscript is even called.

I'll add that escaping the $ can be done in other ways. Instead of a
backslash, you can also do:

myscript '$plusmore'

Single quotes prevent variable expansion. However, if you are simply
unable to quote $plusmore in some way, then you're stuck.

Anand
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Simple bash question

2018-09-28 Thread Anand Buddhdev
On 28/09/2018 15:39, Jerry Geis wrote:

> I am calling a bash script and passing in somestring that includes a "$"
> 
> myscript   "$plusmore"
> 
> I want to assign in the myscript the $1 arg to something like
> MYTEXT="$1"
> 
> when I do that I dont get what I'm expecting. if I do
> MYTEXT='$1'
> I still dont get what I'm expecting.
> 
> On the first assignment of MYTEXT I do not want the "$" to be treated as a
> shell variable. I cannot find out how to do that.
> 
> I do not have the option of escaping the call to myscipt "\$plusmore". I
> cannot do that.
> 
> What am I missing.

You MUST escape the $ in plusmore. If you don't, the calling shell will
try to expand it, and replace it with whatever is in that variable. If
it's not defined, you'll get an empty string. All this happens *before*
myscript is even called.

I'll add that escaping the $ can be done in other ways. Instead of a
backslash, you can also do:

myscript '$plusmore'

Single quotes prevent variable expansion. However, if you are simply
unable to quote $plusmore in some way, then you're stuck.

Anand
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Simple bash question

2018-09-28 Thread Gary Stainburn
On Friday 28 September 2018 14:39:29 Jerry Geis wrote:
> I am calling a bash script and passing in somestring that includes a "$"
>
> myscript   "$plusmore"
>
> I want to assign in the myscript the $1 arg to something like
> MYTEXT="$1"
>

Hi Jerry,

The problem is that bu the time you're in your script it's already too late.

myscript   "$plusmore"

basically says take the contents of the environment plusmore and pass that to 
the script.

if you call

myscript   '$plusmore'

you will get what you want.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Simple bash question

2018-09-28 Thread Jerry Geis
I am calling a bash script and passing in somestring that includes a "$"

myscript   "$plusmore"

I want to assign in the myscript the $1 arg to something like
MYTEXT="$1"

when I do that I dont get what I'm expecting. if I do
MYTEXT='$1'
I still dont get what I'm expecting.

On the first assignment of MYTEXT I do not want the "$" to be treated as a
shell variable. I cannot find out how to do that.

I do not have the option of escaping the call to myscipt "\$plusmore". I
cannot do that.

What am I missing.

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] NetworkManager and multiple dhcp router option

2018-09-28 Thread Nux!
Hello,

Our DHCP server broadcasts a router option consisting of 2 IPs.
Ideally they should both be set as default routes with different metrics, 
however this is not what is happening, only the first one gets used.
Anyone has any tips how to convince NetworkManager to do this?

Cheers

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos