[LUAU] Shell scripting

Jeffery Wong jmwong at math.ed.hawaii.edu
Mon Aug 7 01:37:57 PDT 2000


On Sun, 6 Aug 2000, Steven McFarling wrote:

> I'm working on a small shell script that will periodically make a tarball 
> of a directory and I'd like the tarball to be emailed to me.  I have 
> everything done, except how do I email the tarball?  Any ideas.  I'm using 
> the bash shell.
> 

Here is one way you can do it:

cat tarball | uuencode tarball | mail me at someplace.com

                       ^^^^^^^
I'm not sure if the 2nd tarball name can be skipped, but that is the name
that uudecode will give the file when its decoded.

Depending on what you are trying to do, you might want to use scp (the ssh
version of rcp) with a .shost/server key exchange. 



More information about the LUAU mailing list