26 lines
526 B
Bash
Executable File
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
|