Home Surveillance System

I am working on home surveillance system using an Arduino Yun with two usb cameras connected with a usb hub. I can successfully stream from one camera with mjpg streamer (mjpg_streamer -i "input_uvc.so -y -d /dev/video0 -r 320x240 -f 25" -o "output_http.so -p 8080 -w /www/webcam" &).

The challenge I now have is that I want to stream from the second camera. Please how can I go about that?

I appreciate your suggestions.

finally got it working by duplicating the webcam folder and changing the port number. now, my arduino yun can support multiple cameras.