Adding web and gopher scripts
This commit is contained in:
parent
56f232f3b2
commit
34d5596cca
5
visit-gopher.ksh
Executable file
5
visit-gopher.ksh
Executable file
@ -0,0 +1,5 @@
|
||||
#/bin/ksh
|
||||
|
||||
gopher gopher://sdf.org:70/1/users/scm/
|
||||
|
||||
exit 0
|
17
website-to-other.ksh
Executable file
17
website-to-other.ksh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user