Working on a script to automate some tasks in Firefox.
These tasks should run through a clean Firefox profile, so they are fast and don't interfere with any of my regular surfing.
#!/bin/bash
# Launch clean firefox profile with parameters:
# -no-remote don't connect to any running instance of firefox
# -P run firefox through a profile
firefox -P 'Another Profile' &
sleep 4 # wait for firefox to load
# Open URLs
firefox -new-tab 'http://askubuntu.com/users'
firefox -new-tab 'http://askubuntu.com/badges'
Unfortunately, I can't get the URLs to open in the profile "Another Profile". Instead, Ubuntu launches Firefox with my default user profile and opens them, there.
Any suggestions on how to open them in "Another Profile"?
curl
with a cookie jar (or the-b cookieName=cookieValue
arguments). See the manual page ofcurl
for more details. – Lekensteyn May 05 '13 at 13:16-no-remote
and then close the window after I am done so I did not encounter the issue. Perhaps the Mozilla documentation can help you further,firefox -help
did not show any useful for this case. – Lekensteyn May 05 '13 at 14:18