Melvin Wijenayaka Melvin Wijenayaka - 28 days ago 20
Linux Question

Amazon Linux curl

bash -c "$(curl -s https://install.prediction.io/install.sh)"

I run the above script on and ec2 instance running Amazon linux to install prediction IO. Nothing happens no error. Does anyone know whats going on?

Answer

That command downloads a file in silent mode $(curl -s https://install.prediction.io/install.sh) and then run the file with bash -c. you should run the command in separated steps to check what it is going on

curl -O  https://install.prediction.io/install.sh
chmod +x install.sh 
./install.sh
Comments