Adding web and gopher scripts

This commit is contained in:
Scott C. MacCallum 2023-02-11 15:33:40 +00:00
parent 56f232f3b2
commit 34d5596cca
2 changed files with 22 additions and 0 deletions

5
visit-gopher.ksh Executable file
View File

@ -0,0 +1,5 @@
#/bin/ksh
gopher gopher://sdf.org:70/1/users/scm/
exit 0

17
website-to-other.ksh Executable file
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