Merge pull request #1820 from xexyl/dlowe98-scripts
This commit is contained in:
2 files changed
+13
-18
No files matched your search
+12
-16
@@ -112,18 +112,18 @@ else
|
|||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
could be used to pootify web pages. It was noticed in 2023, however, that
|
can be used to pootify web pages. This has been added as
|
||||||
`lynx(1)` does not work well and `links(1)` does not have the same security
|
[pootify.cgi.sh](pootify.cgi.sh) which forbids `file://` based URLs and which
|
||||||
protections that `lynx(1)` does. Thus it might be unwise to use as a CGI script.
|
uses `lynx(1)` with the option referred to above. This will not, of course,
|
||||||
|
render it as html but rather show the modified html. Nevertheless, this has
|
||||||
|
**NOT** been tested as a CGI script with a webserver to display a pootified web
|
||||||
|
page.
|
||||||
|
|
||||||
The [pootify.sh](pootify.sh) script has been added which is a modification to
|
The [pootify.sh](pootify.sh) script has also been added which is a modification
|
||||||
the above which can be used to render html files locally with the added bonus
|
to the above script which can be used to render html files locally with the
|
||||||
that one can use `file://` URLs. If one uses it as a CGI script (whether
|
added bonus that one can use `file://` URLs. If one wants a CGI script they
|
||||||
modifying it to use `lynx(1)` or not) they might want to uncomment the check in
|
should use the above one instead. You can use the script
|
||||||
the script for `file://` based URLs. It has not been tested as a CGI script with
|
[pootify.sh](pootify.sh), however, to download and generate html files that you
|
||||||
lynx(1) so it's maybe possible that it would work this way.
|
|
||||||
|
|
||||||
You can use this script, however, to download and generate html files that you
|
|
||||||
can look at locally in a browser or pipe through `less(1)`. For instance:
|
can look at locally in a browser or pipe through `less(1)`. For instance:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -133,13 +133,9 @@ can look at locally in a browser or pipe through `less(1)`. For instance:
|
|||||||
```
|
```
|
||||||
|
|
||||||
where the first one would show the text as rendered but without links, images
|
where the first one would show the text as rendered but without links, images
|
||||||
etc. and the second one would write the html to ms.html so that you could open
|
etc. and the second one would write the html to `ms.html` so that you could open
|
||||||
it in a browser.
|
it in a browser.
|
||||||
|
|
||||||
If one does use it as a CGI script you'll want to check out
|
|
||||||
[pootify.cgi.sh](pootify.cgi.sh) which forbids `file://` based URLs and which
|
|
||||||
uses `lynx(1)` with the option referred to above.
|
|
||||||
|
|
||||||
For an old example of it working as a CGI script see:
|
For an old example of it working as a CGI script see:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
+1
-2
@@ -2082,8 +2082,7 @@ to be `int` (in both versions).
|
|||||||
Cody added the scripts [try.sh](/1998/dlowe/try.sh),
|
Cody added the scripts [try.sh](/1998/dlowe/try.sh),
|
||||||
[try.alt.sh](/1998/dlowe/try.alt.sh), [pootify.sh](/1998/dlowe/pootify.sh) and
|
[try.alt.sh](/1998/dlowe/try.alt.sh), [pootify.sh](/1998/dlowe/pootify.sh) and
|
||||||
[pootify.cgi.sh](/1998/dlowe/pootify.cgi.sh) for a fun example use of the
|
[pootify.cgi.sh](/1998/dlowe/pootify.cgi.sh) for a fun example use of the
|
||||||
program, a local pootifier of web pages and a CGI pootifier. It should be noted
|
program, a local pootifier of web pages and a CGI pootifier. See [historical
|
||||||
that the CGI version might have an issue with modern systems; see [historical
|
|
||||||
remarks](/1998/dlowe/README.md#historical-remarks) for more details on the
|
remarks](/1998/dlowe/README.md#historical-remarks) for more details on the
|
||||||
pootify scripts.
|
pootify scripts.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user