首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在linux中使用批处理文件启动多个firefox配置文件

在linux中使用批处理文件启动多个firefox配置文件
EN

Stack Overflow用户
提问于 2013-08-10 22:15:06
回答 2查看 2.3K关注 0票数 1

可以使用firefox -P <profile-name> -no-remote启动不同的火狐配置文件

但是,当我想在linux中使用批处理文件同时启动多个配置文件时,只有第一个配置文件启动,而后续配置文件在退出之前不会启动。

目前,这个批处理脚本没有成功:

代码语言:javascript
复制
#! /bin/bash

firefox -P "profile 1" -no-remote
firefox -P "profile 2" -no-remote
firefox -P "profile 3" -no-remote

基本上,profile 1启动良好,但在我先退出firefox之前,profile 2不会启动;下一个命令在退出之前不会执行。

在Windows中,我成功地使用这个bat文件成功地启动了多个firefox:

代码语言:javascript
复制
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 1" 
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 2" 
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 3"  

start之后的引号帮助实现了这一点,而在start之后没有引号,配置文件并不都是同时开始的,但是在linux中,我不知道如何做到这一点?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-08-11 09:28:12

您需要在后台运行它们,添加

代码语言:javascript
复制
  & 

到命令的末尾

票数 5
EN

Stack Overflow用户

发布于 2014-08-12 10:15:13

这就是我在网上搜索时帮助我的地方。

代码语言:javascript
复制
@echo off

start firefox.exe -P Profile1 -no-remote
start firefox.exe -P Profile2 -no-remote
start firefox.exe -P Profile3 -no-remote
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18166849

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档