bash - Access file on a separate machine python -


so need access files on machine , execute bash commands on machine in python. wondering how that. there in either standard library? if there isn't paramiko i'm looking for?

the specific bash command looking run is...

(journalctl writes string info stdout. need pipe file on machine, or copy file under different name (scp? sftp?))

journalctl > /some_directory/some_file_name.txt

thanks help!

you might find easiest use 'sh' library found at

https://amoffat.github.io/sh/

or

pip install sh 

and call ssh, remote commands, etc.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -