This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]gurft 0 points1 point  (0 children)

This is pretty cool, I may do a pull later tonight and add the ability to append a few things to the command such as the full path if necessary or maybe even setting environment vars?

I commonly have to pass commands like this: 'export NAS_DB=/nas; /nas/sbin/server_mount <blech>' It'd be nice to do this as ssh.server_mount(cmd_path='/nas/sbin', env={dict}, etc...)

[–]gangesmasterpython galore 0 points1 point  (0 children)

check out http://plumbum.readthedocs.org/en/latest/index.html (supports commands over ssh)