I'm looking for a snippet of code that defines a cursor and loops thru the output. My intent is to write an admin script that gets the process ids from the process table and cancels them one by one.

Has anyone done this?