Re: scp in a multi-piped command?
From: Jared (jared_at_hwai.com)
Date: 02/02/04
- Next message: dba2adm_at_yahoo.com: "Re: Putty + AIX + X11 forwarding"
- Previous message: LinuxManMikeC: "Re: Trouble with OpenSSH 3.4p1 - Can't connect with an RSA key pair"
- Next in thread: Jared: "Kinda works, but not really :-("
- Reply: Jared: "Kinda works, but not really :-("
- Reply: Jared: "Re: scp in a multi-piped command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 2 Feb 2004 05:02:33 -0800
Cool! Can't wait to try it Monday morning.
Thank you.
Kind regards,
Jared Hecker
Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<FHgQb.5161$NF7.2585@newssvr29.news.prodigy.com>...
> Jared <jared@hwai.com> wrote:
> > Hi all,
>
> > I am trying to determine a means of:
>
> > exporting from Oracle |
> > passing it through gzip or compress |
> > transferring the file |
> > gzip -d or uncompress on the other end |
> > import into Oracle
>
> > It is very straightforward to take an Oracle export and pipe it to
> > 'compress'. This works, and is a well-known technique. What I want
> > to do is use scp in batch mode for the transfer.
>
> scp transfers files, not pipes. You'll want ssh.
>
> # run the ssh on the sending end.
> ls -l | compress | ssh host "uncompress > /file/location"
>
> # run the ssh on the receiving end
> ssh host "ls -l | compress" | uncompress > /file/location
>
> Or let ssh do the compression...
>
> ls -l | ssh -C host "cat - > /file/location"
>
> Just change the commands above with the ones you want.
- Next message: dba2adm_at_yahoo.com: "Re: Putty + AIX + X11 forwarding"
- Previous message: LinuxManMikeC: "Re: Trouble with OpenSSH 3.4p1 - Can't connect with an RSA key pair"
- Next in thread: Jared: "Kinda works, but not really :-("
- Reply: Jared: "Kinda works, but not really :-("
- Reply: Jared: "Re: scp in a multi-piped command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|