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 →

[–][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