how can i execute command who have input

Simo

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

Barmar

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how can i execute command who have input

From Dev

How can I execute osgi command in code

From Dev

How can I execute shell command with a | pipe in it

From Dev

How can I hide my IP from linux who command

From Dev

How can I type a command to execute when the current command completes?

From Dev

How can I supply input for an external command?

From Dev

How can I execute multiple lein tasks in one command?

From Dev

How can I execute a Vim command followed by external commands execution?

From Dev

How can I execute a shell command in my rvm enviroment?

From Dev

How can I execute hadoop distcp -f command properly?

From Dev

How can I execute an os/shell command from python

From Dev

How can I execute a Vim command followed by external commands execution?

From Dev

How can I execute a Windows command line in background?

From Dev

How can I execute an os/shell command from python

From Dev

How can I execute new commands while an existing command runs?

From Dev

how can I execute command through ssh, remote is windows

From Dev

How can I execute a Windows Store software with a command line?

From Dev

How can i execute awk script with find command on multiple files

From Dev

How can I execute SSH command with output pagination Heredoc

From Dev

How can I tell if I have permission to run a particular command?

From Dev

How can I execute a javascript function when an input changes?

From Dev

Unix: Last command - How do I execute a sub command for file input?

From Dev

Unix: Last command - How do I execute a sub command for file input?

From Dev

How I can get a value from a text file and select a checkbox who have that value?

From Dev

How can I get all the emails from people who have messaged me?

From Dev

How can I write scopes that fetches all users who don't have any user_notifications?

From Dev

Laravel: How can I retrieve a list of users who have a particular role in this example?

From Dev

How can I select users who have not submitted records using php and mysql?

From Dev

How can I get the uid who have the same set of friends of one user? (SQL)

Related Related

  1. 1

    how can i execute command who have input

  2. 2

    How can I execute osgi command in code

  3. 3

    How can I execute shell command with a | pipe in it

  4. 4

    How can I hide my IP from linux who command

  5. 5

    How can I type a command to execute when the current command completes?

  6. 6

    How can I supply input for an external command?

  7. 7

    How can I execute multiple lein tasks in one command?

  8. 8

    How can I execute a Vim command followed by external commands execution?

  9. 9

    How can I execute a shell command in my rvm enviroment?

  10. 10

    How can I execute hadoop distcp -f command properly?

  11. 11

    How can I execute an os/shell command from python

  12. 12

    How can I execute a Vim command followed by external commands execution?

  13. 13

    How can I execute a Windows command line in background?

  14. 14

    How can I execute an os/shell command from python

  15. 15

    How can I execute new commands while an existing command runs?

  16. 16

    how can I execute command through ssh, remote is windows

  17. 17

    How can I execute a Windows Store software with a command line?

  18. 18

    How can i execute awk script with find command on multiple files

  19. 19

    How can I execute SSH command with output pagination Heredoc

  20. 20

    How can I tell if I have permission to run a particular command?

  21. 21

    How can I execute a javascript function when an input changes?

  22. 22

    Unix: Last command - How do I execute a sub command for file input?

  23. 23

    Unix: Last command - How do I execute a sub command for file input?

  24. 24

    How I can get a value from a text file and select a checkbox who have that value?

  25. 25

    How can I get all the emails from people who have messaged me?

  26. 26

    How can I write scopes that fetches all users who don't have any user_notifications?

  27. 27

    Laravel: How can I retrieve a list of users who have a particular role in this example?

  28. 28

    How can I select users who have not submitted records using php and mysql?

  29. 29

    How can I get the uid who have the same set of friends of one user? (SQL)

HotTag

Archive