How do I pass parameters from a shell script to a python script and run this script?

  • to run from shell python script with parameters? / path / to / script parameter1 parameter2 - zb '
  • not from the shell, but from the shell script. - fil23
  • that from the shell that from the shell script - there is no difference. - zb '

1 answer 1

for example:

python путь-к-python-скрипту параметр1 параметр2 ... 

Save to a file, for example, a shell-скрипт , and call:

 $ sh shell-скрипт