How to execute an installer from a variable?

Hi I'm trying to write a script to download and run some installers. The file name is stored in a variable, I use wget to download it, chmod +x the file, and that's as far as I can get.

I've tried:

sudo ./$FILE  CMD="sudo ./$file" eval $CMD  $(sudo ./$file) 

How can I run an installer where the file name is a variable?

Cheers!

Replay

Category: shell script Time: 2016-07-28 Views: 0
Tags: shell script

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.264 (s). 12 q(s)