linux - Run a C program automatically when i open Firefox? -


i have written c program, monitor communication taking place through firefox browser in linux. need execute program firefox starts. please suggest me how do so.

write bash wrapper script

#!/bin/bash my_c_program firefox 

name useful , place on path mentioned in $path.

alternatively, can put in alias:

alias firefox_starter='my_c_program; firefox' 

put line in startup program (.bashrc)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -