This tool will vibrate for a given time that can be passed through a command line parameter.

http://forum.xda-developers.com/showthread.php?t=488847