Hen*_*ast 1 linux bash firefox command-line
可以启动不同的firefox配置文件 firefox -P <profile-name> -no-remote
但是,当我想同时在linux中使用批处理文件启动多个配置文件时,只有第一个配置文件启动,后续配置文件才会在上一个配置文件退出之前启动.
目前我没有成功使用这个批处理脚本:
#! /bin/bash
firefox -P "profile 1" -no-remote
firefox -P "profile 2" -no-remote
firefox -P "profile 3" -no-remote
Run Code Online (Sandbox Code Playgroud)
基本上,profile 1开始很好,但profile 2直到我先退出firefox才开始; 在退出前一个命令之前,下一个命令不会执行.
在Windows中,我已成功设法使用此bat文件同时启动多个firefox:
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"
Run Code Online (Sandbox Code Playgroud)
start帮助后的引号完成此操作,之后没有引号start,配置文件并非都在同一时间启动,但在linux中我不知道如何完成此操作?