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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -