- This topic has 1 reply, 2 voices, and was last updated 6 years ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- You must be logged in to reply to this topic.
› Forums › Basic skills › Programming › Shell scripting (in bash) › Python to BASH arguments
I have written a python script that processes info.txt and can pass 1 string to my master bash file from which I’m running all the reset of the shell scripts, it did this fine and produced results, now when i try and pass through multiple arguments and receive them in the script using $1 $2 $3
etc to train with multiple users, it won’t work
import subprocess . . . subprocess.check_call("./scripts/master.sh %s %s %s" % (chosenuun[1], chosenuun[2], chosenuun[3]), shell=True)
ONE = $1 TWO = $2 THREE = $3 ./scripts/initialise_models ${ONE} ${TWO} ${THREE}
I’m getting an error saying ONE :Command not recognised
I’m lost on how to fix this so any help would be great, thanks
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2024 · Balance Child Theme on Genesis Framework · WordPress · Log in