compress and ftp on the fly

From: B.N.Sarma (bsarma@BASIT.COM)
Date: Wed Aug 28 2002 - 17:35:48 EDT


Greetings,

I need to compress and ftp 2 or 3 files from 4 RS6000 server to
another RS6000 server.
I would like to avoid rsh. I would like to compress and ftp on the fly
and if possible retain the original at the source unchanged, for tht can
I use bzip2.
can I do some thing like this. Please advice.

ftp -i -n <<EOF
open source1
user $user $pass
ftp> cd loc
ftp> get file1.log "|compress"
ftp>get file2.log "|compress"

EOF



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:10 EDT