I need to run the following command inside a bash script:
Code:
dialog --backtitle "Back Title" --title "Title" --menu "" 40 40 10 \
"1" "one two three four" \
"2" "five six seven eight" \
2> temp.file
Where "1" "one two three four" "2" "five six seven eight" are diffrent variables. And it can be a lot more variables, since its going to be read from a seperate file which contains more or less rules for iptables
But when i run it it will be ran as:
Code:
dialog --backtitle "Back Title" --title "Title" --menu "" 40 40 10 \
"1" "one" \
"two" "three" \
"four" "2" \
"five" "six" \
"seven" "eight" \
2> temp.file
I've tryed everything possible i could think of like:
Code:
var1="1"
var2="one two three four"
Code:
var="$var $var1 $var2"
or
Code:
var="$var \"${var1}\" \"${var2}\""
or
Code:
var=$(echo $var \"$var1\" \"$var2\")
and a lot more.
This is a little hard to explain, but you can download the script from
http://62.73.217.42/paasan.tar.gz
It will extract itself to a directory called "paasan" containing the script and a modified version of dialog.
Really hope someone can help
Thanks in advance
