[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Piping file to scp



On Sat, 2003-08-30 at 07:17, moseley@hank.org 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
> 
> 
> 
> 
> -- 
> Bill Moseley
> moseley@hank.org
> 
This is what I use in such cases:

mutt ... | ssh uid@remotehost 'cat > /folder/archive.tar.gz'

It works.

Sincerely,

Jan.



Reply to: