Can I force a firefox page refresh from linux console Can I force a firefox page refresh from linux console linux linux

Can I force a firefox page refresh from linux console


You can use xdotool for automation. Install on Ubuntu with

sudo aptitude install xdotool

Then you can search for windows and send keys or mouse events, see man xdotool for the full documentation. I use following script on Ubuntu 10.04 LTS during development:

WID=`xdotool search --name "Mozilla Firefox" | head -1`xdotool windowactivate $WIDxdotool key F5

See also the xdotool project siteand my full blog post.


As mentioned elsewhere, you can also use the xvkbd tool as in the following:

$ xvkbd -window Firefox -text "\Cr"


The best solution I've found so far..

Install the Firefox Remote Control plugin from:https://addons.mozilla.org/en-US/firefox/addon/remote-control/

Configure it, enable it (use the icon).

And reload for example with the following command:

echo reload | nc -c localhost 32000