Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Example in Readme.DOC on how to get the exit_status
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever authored and jamis committed Oct 24, 2010
1 parent bf60226 commit 33f3e29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ In a nutshell:
sh.execute "pwd"
sh.execute "export FOO=bar"
sh.execute "echo $FOO"
p=sh.execute "grep dont /tmp/notexist"
puts "Exit Status:#{p.exit_status}"
puts "Command Executed:#{p.command}"
end
end

Expand Down

0 comments on commit 33f3e29

Please sign in to comment.