HTAGS-SERVER(1)
β¨ HTAGS-SERVER β¨
okay bestie, welcome to the htags-server manual page, straight out of the General Commands Manual π
πΈ NAME πΈ
htags-server β a private Web/CGI server for htags π«Ά
π SYNOPSIS π
htags-server [-b ip-address][-u language][--retry[=n]][port]
π¦ DESCRIPTION π¦
So htags-server is literally a private Web/CGI server for the hyper-text that htags(1) generates. no cap π
Before you even think about running this, you gotta run htags(1) first. then you run htags-server in that same place, and boom, you can start browsing at http://localhost:8000/ by default. to stop the server you just press CTRL-C β iconic, minimal, we love her β¨
You need Python 2/3 or Ruby with WEBrick equipped, okay? and the way it picks: by default, htags-server looks for python first, and if that's not found, then it goes looking for ruby. she's not picky, she just has a preference π₯°
π OPTIONS π
here's the whole menu, no skips, we're not gatekeeping:
-b,--bindip-address β specifies the IP address thathtags-serverlistens on. the default value is127.0.0.1. yes she stays local, she's shy like that π-u,--uselanguage β specifies the language to use, and it may be one of:pythonandruby. pick your fighter βοΈ--retry[=n]β if the port is already in use, retryntimes while incrementing the port number. the default ofnis20. so she'll keep knocking on doors till one opens πͺβ¨- port β specifies the port that
htags-serverlistens on. if you wanna run multiple sessions, you must use a unique number for eachhtags-server. the default value is8000π
π EXAMPLES π
okay so here's the whole vibe, step by step:
$ gtags
$ htags --suggest2
$ htags-server
Python2 http/cgi server
Serving HTTP on 127.0.0.1 port 8000 ...
then, in another terminal (main character energy, opening a second window):
$ firefox http://localhost:8000/
and here's what happens when the port is already taken, so you don't get jumpscared:
$ htags-server
Error: port 8000 already in use.
$ htags-server --retry
Warning: port 8000 already in use (skipped)
Please access at http://127.0.0.1:8001
Python2 http/cgi server
Serving HTTP on 127.0.0.1 port 8001 ...
see how she just moved on up to 8001? growth π
π DIAGNOSTICS π
htags-server exits with a non-0 value if an error occurred, and 0 otherwise. that's it, that's the whole mood β either she ate or she didn't π₯
π SEE ALSO π
global(1), gtags(1), htags(1), python(1), ruby(1).
GNU Global source code tag system (http://www.gnu.org/software/global/).
π AUTHOR π
Shigio YAMAGUCHI. π«‘
π HISTORY π
The htags-server command appeared in Global-6.3 (2014). she's been serving looks since 2014, fr fr π
and that's the whole page bestie, go forth and browse πΈ
okay so this was the GNU Project's version from November 2016 β mwah, periodt π β¨
π¦ where this page comes from
- arch rolling: global 6.7-1 Β· BSD-3-Clause AND GPL-2.0-only AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LicenseRef-CALDERA AND LicenseRef-PD AND MIT
- debian bookworm: global 6.6.9-1
- debian trixie: global 6.6.13-1
- epel 10: global 6.6.15-1.el10_3 Β· GPL-3.0-or-later and LGPL-2.0-or-later and LGPL-2.1-or-later and BSD-3-Clause and MIT and LicenseRef-Fedora-Public-Domain and blessing and GFDL-1.2-or-later
- fedora 43: global 6.6.15-1.fc43 Β· GPL-3.0-or-later and LGPL-2.0-or-later and LGPL-2.1-or-later and BSD-3-Clause and MIT and LicenseRef-Fedora-Public-Domain and blessing and GFDL-1.2-or-later
- fedora 44: global 6.6.14-1.fc44 Β· GPL-3.0-or-later and LGPL-2.0-or-later and LGPL-2.1-or-later and BSD-3-Clause and MIT and LicenseRef-Fedora-Public-Domain and blessing and GFDL-1.2-or-later
- fedora 44: global 6.6.15-1.fc44
- fedora 44: global 6.7-1.fc44 Β· GPL-3.0-or-later and LGPL-2.0-or-later and LGPL-2.1-or-later and BSD-3-Clause and MIT and LicenseRef-Fedora-Public-Domain and blessing and GFDL-1.2-or-later
- nixos 26.05: global 6.6.14
- nixpkgs unstable: global 6.6.14
- opensuse-leap 16.0: global 6.6.13-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: global 6.6.13-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: global 6.6.13-bp160.1.13 Β· GPL-3.0-only
- opensuse-leap 16.0: global 6.6.13-bp160.1.13 Β· GPL-3.0-only
- ubuntu jammy: global 6.6.7-1
- ubuntu noble: global 6.6.11-1
- ubuntu questing: global 6.6.14-1.1
- ubuntu resolute: global 6.6.14-1.1build1
- ubuntu stonking: global 6.6.14-1.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms