On Sat, Aug 30, 2003 at 07:26:08AM -0700, [EMAIL PROTECTED] wrote: > On Sat, Aug 30, 2003 at 09:47:37AM +0200, Neo wrote: > > On Sat, 2003-08-30 at 07:17 > > , [EMAIL PROTECTED] wrote: > > > I wanted to send an attachement directly from mutt to another machine. > > > Is there a way to pipe to scp? So in mutt, select the attachement and > > > then: > > > > > > | scp other.host:some_file.name > > > mutt ... | ssh [EMAIL PROTECTED] 'cat > /folder/archive.tar.gz' > > Can someone explain that one? That expects a file named > "[EMAIL PROTECTED]" if the ":" is missing, IIRC.
If you look closely, he's using ssh, not scp. In fact, scp can be mostly done with ssh [EMAIL PROTECTED] 'cat > /path/to/dest' < /path/to/source This won't preserve perms and other meta-data, but the files at each end will be the same. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
pgp00000.pgp
Description: PGP signature