Re: Piping file to scp

moseley_at_hank.org
Date: 08/30/03

  • Next message: Neo: "Re: Piping file to scp"
    Date: Sat, 30 Aug 2003 07:26:08 -0700
    To: debian-us <debian-user@lists.debian.org>
    
    

    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.

    This works (and is the difference between trying something late at night
    vs. early in the morning):

    mutt |

       cat > file.tmp && scp file.tmp otherhost: && rm file.tmp

    But I like the fifo suggestion, too.

    -- 
    Bill Moseley
    moseley@hank.org
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Neo: "Re: Piping file to scp"

    Relevant Pages

    • Re: mutt - pipe file to scp
      ... I've been saving them and then using scp to copy them to the ... just call scp from mutt. ... I don't use mutt, so I'm not sure how it executes the pipe, but I suspect you may need to quote the '>'. ...
      (uk.comp.os.linux)
    • Piping file to scp
      ... I wanted to send an attachement directly from mutt to another machine. ... Is there a way to pipe to scp? ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)
    • Re: Masquerading email address in MUTT
      ... Try redirecting input at the end of the command line: ... pipe the user1.file to mutt first. ... You would only need `cat' if you were supposed to feed the ...
      (comp.unix.solaris)
    • Piping output mutt perl
      ... I use mutt and then just use the pipe command. ... I would like to be able to pipe the output of my script then to mutt to send the parsed email to someone else. ...
      (perl.beginners)
    • Re: Piping output mutt perl
      ... > I use mutt and then just use the pipe command. ... > I would like to be able to pipe the output of my script then to mutt to send the parsed email to someone else. ...
      (perl.beginners)