linux - 如何在 Ubuntu 中运行多个 Firefox 实例?

标签 linux bash ubuntu firefox ubuntu-14.04

<分区>

我有一个 .sh 脚本,它是这样的:

#!/bin/bash
while :
do
  firefox ://imacros/?m=script.iim & sleep 600
  killall firefox
  sleep 5
done

但我想运行两个 Firefox 实例并制作了这个脚本:

#!/bin/bash
while :
do
  firefox ://imacros/?m=script.iim
  firefox ://imacros/?m=script2.iim & sleep 600
  killall firefox
  sleep 5
done

但即使是现在,只有一个 Firefox 实例会在第一个脚本运行时启动。

我想知道如何同时运行 2 个实例,同时执行不同的任务?

最佳答案

Firefox 有一个选项:firefox --no-remote ;)

基本上,--no-remote 禁止 firefox 尝试与其他 firefox 实例通信;当我需要两个具有不同配置文件的 Firefox 窗口时,我会使用它。

Documenation

关于linux - 如何在 Ubuntu 中运行多个 Firefox 实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35200491/

相关文章:

linux - 绕过 dev/urandom|random 进行测试

mysql2 gem 安装失败,依赖项未满足 : libmysqlclient-dev

linux - Ubuntu bash 脚本在第一列上进行 grepping 和切割

linux - bash 中是否有 "goto"语句?

ubuntu - 我安装 thrift_client 时出错

linux - 1号线不工作,这两条线不一样吗?为什么?

python - 在读取或写入文件系统时执行其他操作

c - 当指向它的指针作为参数传递给函数时如何填充结构

bash - Mac OS 上 Automator 应用程序 (.app) 的百分比进度

linux - 如何提取grep并切入bash数组