Skip to content

Instantly share code, notes, and snippets.

@jnwheeler44
Created October 23, 2012 16:08
Show Gist options
  • Save jnwheeler44/3939712 to your computer and use it in GitHub Desktop.
Save jnwheeler44/3939712 to your computer and use it in GitHub Desktop.
if pid = params[:pid]
if `ps -o state -p #{pid.to_i} | tail +2` =~ /S+/
sleep(5)
redirect_to :action => :get_report, :pid => pid, :name => params[:name]
return
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment