OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Internal Distribution List?
From: Rask Ingemann Lambertsen (rask-postfixkampsax.k-net.dk)
Date: Wed Jun 07 2000 - 10:24:59 CDT


Den 31-Maj-00 15:15:22 skrev awaddi fĝlgende om "Re: Internal Distribution List?":
>cd /var/spool/mail
>for file in *
>do
> cat >> $file < MailMessage
>done

> or

>cat >> * < MailMessage

   Really? It would expand to e.g.

        cat >> foo bar homer lisa marge < MailMessage

which I don't think is the intended result.

> or

>for user in `cut -f1 -d":" /etc/passwd`
>do
> mail user < MailMessage
>done
>and so forth, no?

   Or even

   cd /home
   mail * < MailMessage

or

   cd /var/spool/mail
   mail * < MailMessage

or

   mail `cut -f1 -d":" /etc/passwd` < MailMessage

and so on. The possibilities for (ab)use of shell expansion and
substitutions are endless. Oh yes, see if your mail command supports --.

Regards,

/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻTŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
| Rask Ingemann Lambertsen | E-mail: mailto:raskkampsax.k-net.dk |
| Registered Phase5 developer | WWW: http://www.gbar.dtu.dk/~c948374/ |
| A4000, 896 kkeys/s (RC5-64) | "ThrustMe" on XPilot, ARCnet and IRC |
| 03h:42m SLEEP? I'm a programmer! |