Wednesday, September 13, 2006

how to update ports on freebsd (better way)

first get cvsup_fastest

then make a script

cvsup -gL2 -h`cvsup_fastest -Q -c us` /usr/share/examples/cvsup/ports-supfile

cron this or whatever

Tuesday, September 12, 2006

unix shell scripting: args check

echo "Usage: program [args] [bleee]"
if [ $# -eq 0 ] ; then
echo "ERROR Insufficient arguments"
exit 1

Monday, September 11, 2006

send email on solaris 8 with xmail

/bin/mailx -s "subject" < /path/to/message/body.txt

the message body has to be a file.