I have an array HSPACE
which is defined inside a python script. I am trying to pass this array to a shell script "arraytest" and execute it from python itself. I am trying with the following piece of code but it doesnt seem to be working:
HSPACE=[0.01, 0.009, 0.008, 0.007]
subprocess.call(["./arraytest"], HSPACE, shell=True)
The content of the shell script is:
#!/bin/bash
for i in ${HSPACE[@]}
do
echo $i
done