openmoz is a command line wrapper for the Mozilla web browser.
Given a file name, a URL, an email address, or a keyword, openmoz will display it with Mozilla.
Openmoz has options for opening new windows and tabs.
- The Mozilla or Mozilla Firebird web browser
- Unix utilities:
openmoz 1.1.0 - For opening the Mozilla web browser.
openfb 1.1.0 - For opening the Mozilla Firebird web browser.
- Extract the contents of the download.
- Copy the file "openmoz" (or "openfb") to /usr/local/bin
openmoz [options] <file, URL, email, or keyword>
Opens the Mozilla web browser, or if the browser is already
open, it attaches to the existing process with a command.
-w --new-window open each item in a new Mozilla window.
-t --new-tab open each item in a new Mozilla tab. (Default)
-x --existing when opening item, replace content of existing Mozilla window.
--startnew start new process rather than attaching to existing.
--attach attach to existing process rather than starting new. (Default)
--inbox open mail/newsgroups.
--mailto compose a new mail message.
--splash use a splash screen on new instance. (Default)
--nosplash never use a splash screen.
--version display openmoz version information.
--about display openmoz license and contact info.
-h --help display this message.
ex (blank page): openmoz
ex (local file): openmoz index.html
ex (global file): openmoz /var/www/html/index.html
ex (URL): openmoz http://mozilla.org
ex (URL w/o protocol): openmoz mozilla.org
ex (URL w/o protocol): openmoz ftp.mozilla.org
ex (email address): openmoz email@example.com
ex (multiple urls): openmoz http://mozilla.org/ http://google.com/
ex (keyword): openmoz mozilla
- Version 1.1.0
- openfb for opening Mozilla Firebird (no mail options, different executable, etc.)
- Easy to modify a few variables to make it work with a different Mozilla browser.
- Cleaner procedural code.
- Posix style argument parsing.
- Waiting only happens when needed after new proccess, but before subsequent commands.
- New processes detached from the terminal process using nohup.
- File URLs translated to Windows style URLs for cygwin users (thanks to Ralf Hauser).
- Version 1.0.3
- Options for opening inbox and composing new message.
- Splash screen option.
- Perl now used to evaluate email regular expression.
- After a new process is started, wait some time and continue commands.
- Version 1.0.2
- Given no arguments, open a blank page.
- Version 1.0.1
- Added Examples
- Simplified regular expression for email
- Version 1.0
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
The Original Code is ostermiller.org code.
The Initial Developer of the Original Code is Stephen Ostermiller.
Portions created by the Initial Developer are Copyright (C) 2002
the Initial Developer. All Rights Reserved.
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.