On Thu, 01 May 2003, Joe just had to get this off his chest:
I wrote my first script this morning. having never done one before, can anyone spot any errors in it. it seems to work fine, but if I missed something...? Also re: comment for line 3, what do i use to setup a rotating tagline file?
Make your own fortune cookies. personal-cookies: cookie 1 % cookie 2 % cookie 3 strfile personal-cookies personal-cookies.dat fortune /path/to/personal-cookies.dat
# .sig file, show version, kernal, hostname on line one [..] # end
Read about here-docs in man bash. echo and file redirect is rather slow and resource consuming. #v+ cat <<EOD > .signature `cat /etc/SuSE-release |grep -i suse` | Kernel `uname -r` / `uname -m` | Posted from: `hostname` `uptime` Wear a gun to someone ... .. nqs@tmcom.com | Blog: http://tigger.tmcom.com/~nqs/blogger.html | GPG key can be found at: http://pgpkeys.mit.edu:11371/ | Geek Code: http://tigger.tmcom.com/~nqs/geek_code.html EOD #v- And read about RFC-bloody-1855 please, specially the bit about sig lengths. Long sigs get boring extremely quickly, and bored people do not read, not to mention answer your posts.. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SuSE 8.2 x86 Kernel k_Athlon 2.4.20-4GB See headers for PGP/GPG info.