Re: [CentOS] Problems with my simple write conf files method

2017-02-22 Thread Robert Moskowitz
On 02/21/2017 09:27 PM, Ian Mortimer wrote: On Tue, 2017-02-21 at 10:50 -0500, Robert Moskowitz wrote: cat

Re: [CentOS] Problems with my simple write conf files method

2017-02-21 Thread Ian Mortimer
On Tue, 2017-02-21 at 10:50 -0500, Robert Moskowitz wrote: > cat $CONF['database_type'] = 'mysqli'; > $CONF['database_user'] = 'postfix'; > $CONF['database_password'] = 'xyz'; > $CONF['database_name'] = 'postfix'; > > $CONF['configured'] = tr

Re: [CentOS] Problems with my simple write conf files method

2017-02-21 Thread KM
great. From: Robert Moskowitz To: CentOS mailing list Sent: Tuesday, February 21, 2017 11:40 AM Subject: Re: [CentOS] Problems with my simple write conf files method On 02/21/2017 11:03 AM, KM wrote: > I have never used this method per se, but in general in any script if

Re: [CentOS] Problems with my simple write conf files method

2017-02-21 Thread Robert Moskowitz
On 02/21/2017 11:03 AM, KM wrote: I have never used this method per se, but in general in any script if you want to preserve the $ (dollar sign) or variable name you must use a backslash to preserve it. For example change your $CONF to \$CONF. The $CONF should then be printed into your conf

Re: [CentOS] Problems with my simple write conf files method

2017-02-21 Thread KM
I have never used this method per se, but in general in any script if you want to preserve the $ (dollar sign) or variable name you must use a backslash to preserve it. For example change your $CONF to \$CONF.  The $CONF should then be printed into your conf file. KM From: Robert Moskowit