In your home folder, make a '.login' file and dump whatever command you want to execute on startup in it.
A while since I did it (and my mac is not here for the moment), but that should do the trick.
and; Think you have to add #!/bin/sh to the top of the file.
(damn my memory is bad)
NuCleuZ