|how to pass variable from python to shell script when shell script is getting called inside python script|
Step through the list, and then call
mail.sh once for
each file. This is the most reliable way.
Convert the items in the list to a space delimited string, and then
pass it in to
mail.sh is setup
correctly, it should accept multiple arguments).
What you cannot do is pass
wholesale to the script.