Skip to main content

Thread: Running script on firefox exit


hi. trying figure out if knows way, either through firefox, or gnu/linux, make script run whenever firefox closed.

you want wrapper:
code:
firefox  wait $(pgrep firefox)  exec firefox_finished
where firefox_finished name of script want run. call script myfirefox. make sure both executable , both in $path (preferably in $home/bin).

caveats: firefox forks. how affects program don't know. pgrep return pid every instance of program firefox part of name. have instance of wrapper every invocation of wrapper. result in multiple copies of firefox_finished being run. consider starting point.

andrew


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Running script on firefox exit


Ubuntu

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい