I am trying to pass arguments to a bash script from python. The official documentation says that you need to separate with comma but I'm using it and it does not work.
subprocess.run(["/bin/bash test.sh", "hello", "dog", "3" ], shell=True)
In the bash script I have this basic code:
echo "The number of arguments is: $#"
The result is: The number of arguments is: 0
Any advice? I decided it to pass as a string (Not so clean), putting a space " "+"hello" + " dog" + " 3"
Regards,