EnglishFrenchSpanish

OnWorks favicon

htconfig - Online in the Cloud

Run htconfig in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command htconfig that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


htconfig - create/update GLOBAL gsearch.cgi files

SYNOPSIS


htconfig -I [-v] [-z] [-a action] [-p pathdb] cgidir

htconfig --install [--verbose] [--makeghtml] [--formaction=cgi] [--pathdb=paths-file]
cgidir

htconfig [-v] [-u url] [-d GTAGSDBPATH] [-s GTAGSROOT] [htmldir]

htconfig [--verbose] [--url=base-url] [--tags=GTAGSDBPATH] [--src=GTAGSROOT] [htmldir]

DESCRIPTION


htconfig is a program to create and maintain a centralised cgi interface for hypertext
created with Shigio Yamaguchi's GLOBAL source code tag system.

htconfig is used to create the necessary scripts in your system's favoured cgi-bin
directory, and to maintain the paths database, which gsearch.cgi uses to locate your
hypertext source and the associated TAGS files. This enables GLOBAL's hypertext search
facilities without requiring you to enable cgi execution outside of a system-wide cgi-bin
directory.

htconfig acts as a backend for the htmake(1) script which automates the process of
generating hypertext source with the relevant options to htags(1) and adding required
entries to the paths database. htconfig can also optionally create a centralised
ghtml.cgi script, for users of the htags -c option which creates compressed hypertext with
a .ghtml suffix.

OPTIONS


Common Options
-v, --verbose
uh, you get one guess.

Install Options
These options are to be used during the initial installation of the centralised cgi
mechanism. If you installed this as a binary package you probably won't need to use these
and can skip to the next section. Otherwise you must run htconfig --install with any or
all of the following options before using htmake(1) or any of the Database Options of
htconfig.

-I, --install
Creates gsearch.cgi in cgidir and creates the config file /etc/gtags/htmake.conf if
it doesn't already exist. You must specify cgidir, there is no default.

-a action, --formaction=action
Puts the default submit action for hypertext created with htmake(1) into
/etc/gtags/htmake.conf when that file is created. You can edit htmake.conf at any
time to change it, or override its setting from the command line. Setting this to
the absolute url of gsearch.cgi on your system is probably what you want here
unless you understand why not.
eg. --formaction=http://host/cgi-bin/gsearch.cgi

-p paths-database, --pathdb=paths-database
Puts the filesystem location of the paths database file into /etc/gtags/htmake.conf
when that file is created. You must define a location for the paths database
either with this option or by editing the GSPATHDATA option in htmake.conf before
using htmake(1) or the Database options of htconfig(1).
Due to file system variations there is no default for this. For Debian GNU/Linux
systems the preferred location is:
/var/lib/gsearch/pathdata
One suggestion for *BSD systems would be:
/var/gsearch/pathdata

-z, --makeghtml
Installs the ghtml.cgi script in cgidir. You will also need edit your http server
config to make use of this. For apache this involves ensuring mod_mime and
mod_actions are loaded and adding lines like:
AddHandler htags-gzipped-html ghtml
Action htags-gzipped-html /cgi-bin/ghtml.cgi
to your httpd.conf file.

Database Options
These options are used to configure and maintain the path database that allows gsearch.cgi
to find your hypertext source and it's tag files. You should call htconfig with these
options when you move files or create a new hypertext source tree with htags(1). The path
database requires the hypertext source to be generated with a unique id using the htags
--id=someid option.

When creating a new hypertext source tree you may prefer to use htmake(1) which invokes
htags with the desired options and then calls htconfig to update the path database as a
single operation.

htmldir
specifies the filesystem path to the root of your hypertext source tree. It
defaults to ./HTML in line with htags(1) defaults and is not required at all if the
--url option is used and your system has lynx(1) availiable,

-u base-url, --url=base-url
the base url of your hypertext source. For best results always use absolute url's
here.
eg. http://host/~user/mysource
It defaults to file:/htmldir

-d gtagsdbpath, --tags=gtagsdbpath
the filesystem path to the GTAGS files associated with your source. It defaults to
the current directory.

-s gtagsroot, --src=gtagsroot
the filesystem path to the root of your original plaintext source tree. It
defaults to the current directory.

EXAMPLES


To initialise and install cgi and config files:

# htconfig -I -a http://host/cgi-bin/gsearch.cgi \
-p /var/lib/gsearch/pathdata /usr/lib/cgi-bin

To generate hypertext and update path database:

$ cd /usr/src/myprog
$ gtags
$ htags --action=http://host/cgi-bin/gsearch.cgi \
--id=uniqueid --nocgi
$ htconfig

or more simply:

$ cd /usr/src/myprog
$ gtags
$ htmake

To update the path database if you relocate your hypertext, TAGS files, or the original
program source:

$ htconfig -u new-url -d new-gtagsdbpath \
-s new-gtagsdbroot newhtmldir

some of these option may be inferred - See their defaults under Database Options

The user running htconfig or htmake must have write permission for the path database.

Use htconfig online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    usm
    usm
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js
    Chart.js
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    will...
    Download iReport-Designer for JasperReports
  • 5
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 6
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • More »

Linux commands

Ad