Hi Julio,
Someone here might know of a syntax that will get you the result you're looking for. If not then it might mean that you need to modify the script slightly to assign the variables to the arguments being passed to the script.
I just tested this on a linux system within a bash shell. You can have a script with two read statements (read is one way to prompt a user for input inside of a script). For example, my bash script:
#!/bin/bash
echo hi
read -a VAR1 -p "var one: "
echo var1=$VAR1
read -a VAR2 -p "var two: "
echo var2=$VAR2
But I have been unable to find a command that echo's both values into the script and have the script recognize them as values for each one of those read prompts. It seems like it takes a value for the first var and exits with no data for the second var:
Two of the few commands I used. Note: Also, values with spaces do not seem to be fully assigned to var1.
echo "abc" "tes" | ./testReads.sh
./testReads.sh < <(echo "abc tes")
Example of script that assigns the variables to the arguments being passed to the script:
#!/bin/bash
echo hi
VAR1=$1
VAR2=$2
echo var1=$VAR1
echo var2=$VAR2
Then execute with:
./testReads2.sh "this is one" "this is two"
Regards,
Gregg