[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash variable escaping



On Wed, 11 Sep 2013 01:44:33 +1000
Zenaan Harkness <zen@freedbms.net> wrote:

> Show us how you're _trying_ to do it currently, then we might be able
> to see what you're doing wrong :) :)

Hi,

here's the relevant part of the script:

machines=$(dialog --inputbox "Choose the minions:" 10 50 "'*'" 3>&1 1>&2 2>&3)
dialog --infobox "Running Salt Stack - Dryrun, please wait..." 10 50
logfile=$(mktemp)
/usr/bin/salt ${machines} state.highstate -v test=True -b 10 > ${logfile}

If I replace the salt-line with echo ${machines} the output is correct.

Bye for now.


Reply to: