Linux, Unix, /etc/

$ To set up this Linux system, do I really have to type long, cryptic, frequently inconsistent and undocumented commands with occasional long strings of hex digits?

# Yeah. You got a problem with that?

Sponsored links (requires javascript):

#!/bin/ksh
#getpop: get  mail from a pop3 mailbox
tempfile=/tmp/getpop.$$
trap 'rm -f $newdatafile $listfile $tempfile $oldtempfile; exit 1' 0 1 2 15

NAME=${1:-name}
PASS=${2:-pass}
SERVER=${3:-hostname}

number=$((echo user $NAME;echo pass $PASS;echo list;echo quit) |
nc $SERVER 110 |
grep '+OK .* [0-9][0-9]* message' |
awk '{if ($4 > 0) print $4}')

i=1
while [ $i <= $number ]
do
    echo user $NAME;echo pass $PASS;echo read $i;echo quit) >> $tempfile
    i=`expr $i + 1`
done


main | scripts | contact | links

Sponsored links (requires javascript):