sdf-scripts/cluster-web-to-other.ksh
2023-02-13 19:54:06 +00:00

26 lines
526 B
Bash
Executable File

#/bin/ksh
file=$(date +"%Y-%m")
# Cluster
wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org
html2text -o /sdf/arpa/ns/s/scm/$file -ascii -style pretty /sdf/arpa/ns/s/scm/index.html
cat /sdf/arpa/ns/s/scm/$file > .plan
chmod 754 /sdf/arpa/ns/s/scm/gopher/$file
cp /sdf/arpa/ns/s/scm/$file /sdf/arpa/ns/s/scm/gopher
# Meta Array
cat $file | col -b -x > $file.ma
scp /sdf/arpa/ns/s/scm/$file.ma scm@ma.sdf.org:/meta/s/scm/.plan
scp /sdf/arpa/ns/s/scm/$file.ma scm@ma.sdf.org:/meta/gemini/scm/index.gmi
exit 0