Can I force a firefox page refresh from linux console

前端 未结 4 1575
我寻月下人不归
我寻月下人不归 2020-12-30 05:41

This is the Linux version of this question. Does anyone have a method for forcing a page refresh on firefox from the command-line?

4条回答
  •  天涯浪人
    2020-12-30 06:27

    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 $WID
    xdotool key F5
    

    See also the xdotool project site and my full blog post.

提交回复
热议问题