Re: Piping file to scp
On Sat, Aug 30, 2003 at 04:47:16PM +0200, Neo wrote:
> On Sat, 2003-08-30 at 16:26, moseley@hank.org wrote:
> > On Sat, Aug 30, 2003 at 09:47:37AM +0200, Neo wrote:
> > > 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
> >
> > > mutt ... | ssh uid@remotehost 'cat > /folder/archive.tar.gz'
> >
> > Can someone explain that one? That expects a file named
> > "uid@remotehost" if the ":" is missing, IIRC.
> >
> If you look more closely, you see that it is using ssh instead of scp...
> Didn't get your coffey yet ;-) ?
Ah, no. It's Saturday morning and I'm out of coffee. Going to be a
rough day.
Thanks for the clue stick wack!
--
Bill Moseley
moseley@hank.org
Reply to: