Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

command line use of firefox to open a local html file at a search token

12,353 views
Skip to first unread message

Tony Gualtieri

unread,
May 31, 2010, 4:11:16 PM5/31/10
to support...@lists.mozilla.org
From a command line I would like to open a html file from my local files
system and when opened have firefox search and move to
token specified from the command line..

I can readily do the opening using

firefox file://<path>/<local_file.html>
.
but I cannot see a way to pass a search token to firefox from the command
line. Clearly in the firefox display of the html file when opened
I can incant ^f to get the search box and use that, but i want to automate
this from the command line.

Thanks for helping,

Tony

g

unread,
May 31, 2010, 4:41:00 PM5/31/10
to firefox-support

in linux 'firefox -h' or 'firefox -help' gives help for command line opening
of firefox.

in ms os i believe command would be 'firefox /help'.

in linux, help does not show passing a search token. maybe it is same with
ms os.

when having problems and asking questions, it helps to give firefox version,
as well as os.

--

peace out.

tc,hago.

g
.

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****

signature.asc

»Q«

unread,
May 31, 2010, 8:41:18 PM5/31/10
to

> Tony Gualtieri wrote:
> >>From a command line I would like to open a html file from my local
> >>files
> > system and when opened have firefox search and move to
> > token specified from the command line..
> >
> > I can readily do the opening using
> >
> > firefox file://<path>/<local_file.html>
> > .
> > but I cannot see a way to pass a search token to firefox from the
> > command line. Clearly in the firefox display of the html file when
> > opened I can incant ^f to get the search box and use that, but i
> > want to automate this from the command line.

Sorry to reply downthread, but I don't have the original.

You can't pass a search token on the command line. If your file has
named anchors, though, you could use those.

firefox "file://>path>/local_file.html#fragment"

should take you to the anchor with name or id attribute 'fragment'.

--
»Q« /"\
ASCII Ribbon Campaign \ /
against html e-mail X
<http://www.asciiribbon.org/> / \

0 new messages