w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
how to pass variable from python to shell script when shell script is getting called inside python script

You can:

  • 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 (assuming mail.sh is setup correctly, it should accept multiple arguments).

What you cannot do is pass ['a.txt','b.txt','c.txt'] wholesale to the script.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.