httpindex(1)
β¨ httpindex β the manual page bestie π
okay so this is httpindex(1), from the General Commands Manual section, and honestly? she's a whole vibe. let's get into it π«Ά
πΈ NAME πΈ
httpindex β the HTTP front-end for the SWISH++ indexer. she's the girl in the group chat who goes out and grabs stuff from the internet so the indexer can do her thing. no cap. π
π SYNOPSIS π
wget [ options ] URL... 2>&1 | httpindex [ options ]
like. that's the whole pipeline. wget does the fetching, httpindex does the indexing. it's giving collaboration. it's giving duo. β¨
π DESCRIPTION π
so httpindex is a front-end for index++(1), and her whole job is indexing files that you copied off remote servers using wget(1). the files come over in a copy of the remote directory structure (yes, the whole tree, iconic), and after indexing you've got choices bestie β you can keep them, delete them, or replace them with their descriptions. pick your fighter. π
β¨ OPTIONS β¨
π¦ wget Options π¦
the wget(1) options that are required are: -A, -nv, -r, and -x. non-negotiable. mandatory. the moment. π₯
the ones that are highly recommended are: -l, -nh, -t, and -w. you can skip these but like... why would you. (See the EXAMPLE, bestie, it's right there. π)
π httpindex Options π
httpindex accepts the same short options as index++(1) β EXCEPT for -H, -I, -l, -r, -S, and -V. those six are not invited to this party. π
the following options are unique to httpindex:
-dβ replace the text of local copies of retrieved files with their descriptions after they've been indexed. this is so useful for showing file descriptions in search results without needing complete copies of the remote files, which saves you filesystem space (your disk said thank you π«Ά). (See theextract_description()function inWWW(3)for the deets on how descriptions get extracted. iykyk.)-Dβ delete the local copies of retrieved files after they've been indexed. this stops your local filesystem from filling all the way up with copies of remote files. she's a clean girl. she's minimal. π
π EXAMPLE π
say you wanna index all the HTML and text files on a remote web server while keeping the descriptions locally. say less:
wget -A html,txt -linf -t2 -rxnv -nh -w2 http://www.foo.com 2>&1 |
httpindex -d -e'html:*.html,text:*.txt'
heads up bestie β you need to redirectwget(1)'s output from standard error to standard output so you can pipe it intohttpindex. that2>&1is not decorative. it's load-bearing. π
π EXIT STATUS π
exits with a value of zero only if indexing completed successfully. otherwise it's non-zero. simple as that. no notes. β¨
π CAVEATS π
on top of all the caveats that come with index++(1) (yes, she has her own baggage), httpindex does NOT correctly handle using multiple -e, -E, -m, or -M options. why? because the Perl script uses the standard GetOpt::Std package for processing command-line options, and that package doesn't handle it. so the last one of any of those options ``wins.'' periodt. π
the work-around? use multiple values for those options separated by commas in a single one of those options. so if you wanna do this:
httpindex -e'html:*.html' -e'text:*.txt'
do this instead:
httpindex -e'html:*.html,text:*.txt'
same energy, fewer problems. you're welcome. π
π SEE ALSO π
π AUTHOR π
Paul J. Lucas <pauljlucas@mac.com>
and that's the whole page, bestie π§ β brought to you by SWISH++, dated August 2, 2005. yeah she's vintage but she ATE and she's still serving. go index something. slay. π β¨
π¦ where this page comes from
- debian bookworm: swish++ 6.1.5-6
- debian trixie: swish++ 6.1.5-6
- ubuntu jammy: swish++ 6.1.5-6
- ubuntu noble: swish++ 6.1.5-6build1
- ubuntu questing: swish++ 6.1.5-6build1
- ubuntu resolute: swish++ 6.1.5-6build2
- ubuntu stonking: swish++ 6.1.5-6build2
- Copyright (C) 1998 Paul J. Lucas
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms