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
or
pip install sh
and call ssh, remote commands, etc.
Comments
Post a Comment