getsatan
Article: 7529 of alt.hackers From: rjones@coho.halcyon.com (Ry Jones) Newsgroups: alt.hackers Subject: getsatan Date: 22 Mar 1995 09:03:24 GMT Organization: Amazing Pudding Lines: 27 Approved: Yes Message-ID: 3kop4s$sj2@news1.halcyon.com NNTP-Posting-Host: coho.halcyon.com X-Newsreader: TIN [version 1.2 PL2] Status: RO
ObHack:
This is a script I wrote to grab satan as soon as it is available.
The hack here is the little bit of awk to resubmit the at job.
I have no cron access here.
Someone over my shoulder just pointed out that I don't check that
satan.tar.gz exists. notice, however, that once we get the file, we
stop submitting ourselves.
Ry
#!/bin/sh
/usr/local/bin/ncftp ftp.lerc.nasa.gov:/security/satan.tar.Z
if [ -f satan.tar.Z ]; then
uncompress satan.tar.Z
gzip satan.tar
mpack -s "Satan Delivery For You" satan.tar.gz rjones@work.com
else
at `date | sed -e '/:/s// /g' | awk '{ \
if ( $4+1 > 23) $4 = -1; \
printf ("%s:%s",$4+1,$5); }'` getsatan
fi
--
rjones@halcyon.com net.viking
GCS/S/O: d? H--- s+:+ g+ p1+ au-- a- w+++ v++ C++++ UL++++ P+ L++ 3- E---
N+ K++ W++ M-- V-- -po+ Y++ t !5 jx R G''' tv+ b+++ D++ B--- e+ u*--- h----
f r+++ !n---- y++++ GeekCode v2.1: finger hayden@vax1.mankato.msus.edu