using mjpg steamer on arduino yun from a sketch

i want to use the mjpg streamer command for my arduino and camera to stream which i can do using an SSH terminal but i want to be able to start it from an arduino sketch using a runShellCommand and i have tried a few different combinations but it keeps being unable to verify the sketch when uploading so is there a way to change the code below to start mjpg streamer from a sketch. Thanks

mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 25" -o "output_http.so -p 8080 -w /www/webcam" &

Mjpeg stream video

At SSH terminal:

/etc/init.d/mjpg-streamer disable

At sketch:

/etc/init.d/mjpg-streamer start

for start.

/etc/init.d/mjpg-streamer stop

for stop.

Thank you so much it works perfectly