在linux中使用批处理文件启动多个firefox配置文件 [英] Starting multiple firefox profiles with batch file in linux

查看:490
本文介绍了在linux中使用批处理文件启动多个firefox配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用 firefox -P< profile-name>启动不同的firefox个人资料。 -no-remote

但是,当我想同时启动linux中的批处理文件时,只有第一个配置文件启动,

However, when I want to start multiple profiles with batch file in linux simultaneously, only the first profile starts and the subsequent profiles do not start until the previous is quit.

目前我对此批处理脚本不成功:

At the moment I am unsuccessful with this batch script:

#! /bin/bash

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

基本上, profile 1 罚款但个人资料2 不会开始,直到我退出firefox第一;

Basically, profile 1 starts fine but profile 2 does not start until I quit firefox first; the next command does not get executed until the previous is quit.

在Windows中,我已成功管理使用此bat文件同时启动多个firefox:

In Windows, I have successfully managed to start multiple firefox simultaneously using this bat file:

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 帮助完成这个,在开始后没有引号,配置文件不是全部​​同时启动,而是在linux我不知道

The quotes after start help accomplish this, without quotes after start, profiles don't all start at the same time, but in linux I have no idea how to accomplish this?

推荐答案

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

You need to run them in the background by adding an

  & 

到命令末尾

这篇关于在linux中使用批处理文件启动多个firefox配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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