[CentOS] Opinions on storage options such as gateways or like-systems

2020-07-23 Thread Erick Perez - Quadrian Enterprises
Hi all, I'm looking for some comments regarding options related to storage. We have a number of Apache web servers (24) running on (24) Centos 7.x systems, fully patched running a sort of MySQL, Java and PHP applications. All as virtual machines on top of Vmware ESX. When the Apache/MySQL R/W da

Re: [CentOS] virtualbox

2020-07-23 Thread Chuck Campbell
On 7/23/2020 4:49 PM, Chuck Campbell wrote: Has anyone gotten virtualbox to run on Centos8? I did the install, and it complained about missing elflibs, so I installed those, and the virtualbox install finished without any reported problems. when i try to run virtualbox, it fails with this m

Re: [CentOS] virtualbox

2020-07-23 Thread Scott Robbins
On Thu, Jul 23, 2020 at 04:49:39PM -0500, Chuck Campbell wrote: > Has anyone gotten virtualbox to run on Centos8? I did the install, and it > complained about missing elflibs, so I installed those, and the virtualbox > install finished without any reported problems. > > > when i try to run virtua

Re: [CentOS] virtualbox

2020-07-23 Thread Frank Cox
On Thu, 23 Jul 2020 16:49:39 -0500 Chuck Campbell wrote: > Has anyone gotten virtualbox to run on Centos8? Yes. It "just works" for me. > I did the install, and it complained about missing elflibs, so I installed > those, and the > virtualbox install finished without any reported problems.

[CentOS] virtualbox

2020-07-23 Thread Chuck Campbell
Has anyone gotten virtualbox to run on Centos8? I did the install, and it complained about missing elflibs, so I installed those, and the virtualbox install finished without any reported problems. when i try to run virtualbox, it fails with this message: Qt FATAL: This application failed to s

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Ron Loftin
On Thu, 2020-07-23 at 10:49 -0400, Jerry Geis wrote: > Sorry - I see it now "remove the cat". > > Thanks "All" for the suggestions.  I wasnt aware of the method to > avoid the > cut command. > Here's a few "historical" observations on this thread. 1)  Your original script looks like you were tr

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Jerry Geis
Sorry - I see it now "remove the cat". Thanks "All" for the suggestions. I wasnt aware of the method to avoid the cut command. Jerry ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Anand Buddhdev
On 23/07/2020 16:37, Jerry Geis wrote: Thanks, when I change it do the following I get a syntax error #!/bin/bash # while read LINE do echo $LINE done < cat list.txt You don't use "cat" here; it's not needed at all. You write: done < list.txt This tells the shell to redirect the s

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Giles Coochey
On 23/07/2020 15:37, Jerry Geis wrote: Thanks, when I change it do the following I get a syntax error #!/bin/bash # while read LINE do echo $LINE done < cat list.txt done < list.txt ./test_bash.sh ./test_bash.sh: line 6: syntax error near unexpected token `list.txt' ./test_bash.sh

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Gianluca Cecchi
On Thu, Jul 23, 2020 at 4:25 PM Anand Buddhdev wrote: > On 23/07/2020 15:46, Jerry Geis wrote: > > Hi Jerry, > > See below, inline, for some comments. > > > > while read -r LINE > > do > > NODENAME=` echo $LINE | cut -f 1 -d ','` > > NODENAME=$(cut -d, -f1 <<< $LINE) > > Notes: use $( instead o

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Anand Buddhdev
On 23/07/2020 15:46, Jerry Geis wrote: Hi Jerry, You can do even better: index=0 total=0 names=() ip=() IFS=, while read -r NODENAME IP do names[$index]="$NODENAME" ip[$((index++))]="$IP" ((total++)) done < list.txt In this example, you set the input field separator (IFS) to the comma,

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Jerry Geis
Thanks, when I change it do the following I get a syntax error #!/bin/bash # while read LINE do echo $LINE done < cat list.txt ./test_bash.sh ./test_bash.sh: line 6: syntax error near unexpected token `list.txt' ./test_bash.sh: line 6: ` done < cat list.txt' _

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Pierre Malard
Hi, Some remarks: - just try « expr ${VAR} + 1 » (with blanc between car) - use simple redirection (« < ») with a simple reference to file (« done < list.txt ») - use « ${VAR} » to manage variables - you can use numeric notation to increment VAR (p.e. « total=$(( ${total} + 1 )) ») An other wa

Re: [CentOS] Off Topic bash question

2020-07-23 Thread Anand Buddhdev
On 23/07/2020 15:46, Jerry Geis wrote: Hi Jerry, See below, inline, for some comments. I have a simple script: #!/bin/bash # index=0 total=0 names=() ip=() while read -r LINE do NODENAME=` echo $LINE | cut -f 1 -d ','` NODENAME=$(cut -d, -f1 <<< $LINE) Notes: use $( instead of backticks.

Re: [CentOS] USB-serial adapter for CentOS 7

2020-07-23 Thread H
On 07/08/2020 06:55 PM, H wrote: > On 07/08/2020 11:58 AM, John Pierce wrote: >> On Wed, Jul 8, 2020 at 8:46 AM H wrote: >> >>> I believe I mentioned that the UPS has the serial port, the computer thus >>> has USB. >>> >>> >> yes, but is it 'basic serial UPS' or is it 'enhanced serial UPS' ?th

[CentOS] Off Topic bash question

2020-07-23 Thread Jerry Geis
I have a simple script: #!/bin/bash # index=0 total=0 names=() ip=() while read -r LINE do NODENAME=` echo $LINE | cut -f 1 -d ','` IP=` echo $LINE | cut -f 2 -d ','` names[index]="$NODENAME" ip[index]="$IP" index=`expr index+1` total=`expr total+1` done <<< $(cat list.txt) simple file: