Re: using secure ftp with a pipe ?
From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 06/24/04
- Next message: Ja Fool: "fetching mail securely"
- Previous message: Konstantinos Peletidis: "Re: using secure ftp with a pipe ?"
- In reply to: Larry: "Re: using secure ftp with a pipe ?"
- Next in thread: Konstantinos Peletidis: "Re: using secure ftp with a pipe ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 24 Jun 2004 17:34:12 GMT
surfunbear@yahoo.com (Larry) writes:
>These are binary files, would you use binary files with cat ?
>My unix nutshell book mentiones end with EOF, so I'm thinking
>it's text processing only.
There's no "in-band" EOF (i.e., no EOF character in files), so cat
works fine for binary files. The EOF character has only meaning when
types on a tty.
>>
>> $ cat source.txt | ssh user@remote "cat - > destination.txt"
Of course, you need one fewer cat:
$ < source.txt ssh user@remote "cat - > destination.txt"
Casper
-- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.
- Next message: Ja Fool: "fetching mail securely"
- Previous message: Konstantinos Peletidis: "Re: using secure ftp with a pipe ?"
- In reply to: Larry: "Re: using secure ftp with a pipe ?"
- Next in thread: Konstantinos Peletidis: "Re: using secure ftp with a pipe ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]