Find the answer to your Linux question:
Results 1 to 4 of 4
i have created a custom profile for firefox. i am being able to open firefox with this profile but i want also want to run another command with it. let ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2

    run firefox with a profile

    i have created a custom profile for firefox. i am being able to open firefox with this profile but i want also want to run another command with it. let me explain more. so this opens firefox with desired profile.
    Code:
    firefox -P/root/.mozilla/firefox/oscucdwa.customprofile
    and this runs my script well
    Code:
    firefox "javascript:window.open('htp://yahoo.com','myapp',toolbar=0,menubar=0);self.close();"
    but i somehow want to combine them together. like achieve both in one command
    any help is much appreciated. thanks

  2. #2
    Just Joined! spaceminer143's Avatar
    Join Date
    Nov 2008
    Posts
    20
    Welcome to the forums!

    I think it should work fine to just type:
    Code:
    firefox -P/root/.mozilla/firefox/oscucdwa.customprofile "javascript:window.open('htp://yahoo.com','myapp',toolbar=0,menubar=0);self.close();"

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2
    Quote Originally Posted by spaceminer143 View Post
    Welcome to the forums!

    I think it should work fine to just type:
    Code:
    firefox -P/root/.mozilla/firefox/oscucdwa.customprofile "javascript:window.open('htp://yahoo.com','myapp',toolbar=0,menubar=0);self.close();"
    thanks for the reply. above does not work. it just opens firefox with homepage. and i changed "htp" above to "http" as well. so that is not the reason. any other suggestions? thanks

  4. #4
    Just Joined! spaceminer143's Avatar
    Join Date
    Nov 2008
    Posts
    20
    hmmm... Sorry about that...
    Ok... I tried this and unfortunately my version of firefox aparently does not allow javascript urls for firefox in the command line... at least I don't know how to make it work right. That is to say, I cannot run the script you are trying to run, so I'm not sure about this.
    But if all you want to do is run two commands consecutively, then you can enter them on the same line seperated by a semicolon. Or am I misunderstanding your question?

    Code:
    firefox -P/root/.mozilla/firefox/oscucdwa.customprofile; firefox "javascript:window.open('htp://yahoo.com','myapp',toolbar=0,menubar=0);self.close();"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...