- or download this
usage: shar [-AabCcDdefhmorstuvZ] <file|dir> ...
-A: supress warning messages for optional acl entries
...
-u: assume remote site has uudecode(1) for unpacking
-v: verbose mode
-Z: shrink files using compress(1)
- or download this
(hpux) $ shar myfile.pl > myfile.shar
...
Compiling unpacker for non-ascii files
x - myfile.pl
- or download this
#!/usr/bin/perl -w
my $recipients = 'admin@site1 admin@site2';
...
print MAIL `shar @ARGV`;
print MAIL `cat ~/.signature`;
close MAIL;