additemtodock allows you to add items the dock on Mac OS X systems via the command line.
Further information including basic and more advanced usage is available via the following URLs:
Home page : http://www.lucid.systems/tools/additemtodock
Introduction : http://www.lucid.systems/tools/additemtodock/additemtodock_introduction.txt
Usage Tips : http://www.lucid.systems/tools/additemtodock/additemtodock_tips.txt