i want to execute a python script who have 3 inputs .
so i want to execute the script in the shell by one line command and pass him the inputs values .
i have seen one solution to do that but it works just if i have only one input . the command is like :
$ echo "params input" | python myscript.py
the issue is the command don't work if i have more than 1 input
any suggestion please ? thank you
use a here-doc:
python myscript.py <<EOF
input line 1
input line 2
input line 3
EOF
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments