I\'m doing some automation with Firefox and although I can open Firefox window from shell, I\'m not able to terminate it properly. If I kill Firefox process with
kill
You can first get the Pid of firefox with
pgrep firefox
and after use kill to stop firefox kill [pid]
kill `pgrep firefox`