Re: MAILX on an AIX server with arguments



On 25 Sep 2006 16:54:22 -0700, DanceRat
<kimberly.shaffer@xxxxxxxxx> wrote:
I'm having the darndest time with this but it seems like it would be a
simple thing I'm missing...

Basically, what I'm trying to do is have my cake and eat it too - if
there isn't a file for the body, (no mfile exists), then I want it to
just put whatever is typed out in argument #1 as the bodyfile - for
instance, I type in "this is a test" for the $1 argument and when it
sees that there isn't a file called "this is a test" it actually just
uses that string as the body.

Anyone have any ideas?

if [ -f "$mfile" ]; then
cat "$mfile" > $afile.uu
else
echo "$mfile" > $afile.uu
fi



--
It's there as a sop to former Ada programmers. :-)
-- Larry Wall regarding 10_000_000 in <11556@xxxxxxxxxxxxxxxxxxxxxxx>
.