Ola
I am still new to bash, and I already made several scripts

I use zenity for running my scripts.
Right now I made script that records from my webcam, but,
it needs to be run in terminal in order to ctrl+c to stop recording.
My script:
Code:
#!/bin/bash
kam=$(zenity --title "Shrani kot (.avi dodaj na koncu):" --file-selection --save --confirm-overwrite);
mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 -nosound -ovc lavc -o $kam
exit
How can I stop already running command using... , well, using what?
Thank you.