I'm creating a small script and I'd like to pass a varable into a bash command using the python programming language, so for example:
number = raw_input("digit: ")
then i'd like to take the number variable and put it in bash command so for example:
ssh 'foo%s.bar'(number) <- where the %s is located id like it be replaced with the input
Finally I'd like to take that and run it in a bash command still within the python script:
ssh foo45.bar
How can I make this work?