The best way to automatically control a camera is with a microcontroller such as an Arduino. To connect the microcontroller to your camera, you will also need are a small diode and a jumper wire.
Insert the cathode of the diode (the side with the stripe) into one of the digital pins of the microcontroller. Then insert the jumper wire into one of the GND pins on the microcontroller. Now you need to connect these to the shutter switch cable. The jumper wire should connect to the ground of the camera. The diode should connect to the shutter function on the camera.
When the microcontroller sends a LOW signal to the digital pin, the camera shutter should activate. But when a HIGH signal is sent to the digital pin, the diode becomes reverse biased and prevents the electricity from flowing into the camera. This protects the circuitry of the camera from being potentially damaged.
Using the microcontroler, you can easily incorporate your camera into any kind of automated system.