Adding web and gopher scripts

This commit is contained in:
scm committed 2023-02-11 15:33:40 +00:00
1 parent 56f232f3b2
commit 34d5596cca
2 files changed
+22

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#/bin/ksh
gopher gopher://sdf.org:70/1/users/scm/
exit 0
+17
View File
@@ -0,0 +1,17 @@
#/bin/ksh
file=$(date +"%Y-%m")
wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org
html2text -o /sdf/arpa/ns/s/scm/$file -ascii -style pretty index.html
cat /sdf/arpa/ns/s/scm/$file > .plan
mv /sdf/arpa/ns/s/scm/$file /sdf/arpa/ns/s/scm/gopher
chmod 754 /sdf/arpa/ns/s/scm/gopher/$file
rm /sdf/arpa/ns/s/scm/index.html
exit 0