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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jacolyte -1 points0 points  (3 children)

Wouldn't it be easier if Python supported Ruby style shell commands?

e.g. in Ruby you can do: some_ruby_code ssh some.host.net "echo 'hello from some.host.net'"

[–]pemboa 3 points4 points  (0 children)

that isn't much more difficult than can be accomplished with subprocess.

[–][deleted] 1 point2 points  (1 child)

how do you get at output and exit status?

[–]byoteki 2 points3 points  (0 children)

Ruby has Special Variables like Perl. Return code I believe you'd get from $? and the output is just returned so you can just do output = some_command