Friday, August 17, 2012

Execute external commands in Rails and capture the output

output = %x[./script/delayed_job status]
puts output

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.