Sharkctl is a project mainly written in C, it's free.
Library to allow programmatic control of Shark on Mac OS X 10.6 Snow Leopard
404: Not Found