💾 Archived View for gopher.zcrayfish.soy › 1 › phlog › 20180413-loading-gophermap-from-another-serve… captured on 2024-06-16 at 12:38:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

----------------------------------------
Loading gophermap from another server
April 13th, 2018
----------------------------------------

Do you deal with multiple gopher servers and need to embed a gophermap
on one server from another? Here's a very simple trick you can do using
an executable gophermap, you can see it in action on my phlog listing
on SDF ( gopher://sdf.org:70/1/users/zcray/phlog )... It's not actually
hosted on SDF, it's loaded directly from my personal site.

So to pull this trick off, you'll need an executable gophermap and curl
like so:

#!/bin/sh
/usr/pkg/bin/curl -s gopher://gopher.zcrayfish.soy/1/phlog/



And, yes, of course, you can embed it inline like so:

#!/bin/sh
echo -e "1An awesome gopher server\t/\tgopher.zcrayfish.soy\t70"
/usr/pkg/bin/curl -s gopher://gopher.zcrayfish.soy/1/phlog/
echo This is info text | gsed -e 's/$/\tfake\t(NULL)\t1/' -e 's/^/i/'



(above example works on SDF/BSD, change paths and use regular sed as
appropriate, on GNU for instance)
----------------------------------------

Back to phlog index

gopher.zcrayfish.soy gopher root

Future direct comment submission has been disabled for this phlog entry.
Comments are still accepted by email, please send to:
zacharygopher@gopher.zcrayfish.soy
Be sure to include the post title in the subject line! Thanks!
Nobody has commented on this post.