Skip to content
Advertisement

Python Paramiko – Run command

I’m try to run this script:

JavaScript

The question is: how can I put the variables y,m,d into the variable command ?

Advertisement

Answer

Python has lots of ways to perform string formatting. One of the simplest is to simply concatenate the parts of your string together:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement