我可以从Linux控制台强制刷新Firefox页面 [英] Can I force a firefox page refresh from linux console

查看:186
本文介绍了我可以从Linux控制台强制刷新Firefox页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是此问题的Linux版本.有没有人有办法从命令行在Firefox上强制刷新页面?

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

推荐答案

您可以使用xdotool进行自动化.在Ubuntu上安装

You can use xdotool for automation. Install on Ubuntu with

sudo aptitude install xdotool

然后,您可以搜索窗口并发送键或鼠标事件,有关完整文档,请参见man xdotool.在开发过程中,我在Ubuntu 10.04 LTS上使用了以下脚本:

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

另请参见 xdotool项目站点我的完整博客文章.

这篇关于我可以从Linux控制台强制刷新Firefox页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆