Unix Shell - How can I FTP a file from one UNIX box to other UNIX box using xcomtp.

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2006 > How can I FTP a file from one UNIX box to other UNIX box using xcomtp.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I FTP a file from one UNIX box to other UNIX box using xcomtp.
Ambarish

2006-10-31, 1:31 am

Hi,
I want to ftp a large file(10 GB) from one unix box to other. Can
anybody plesae tell how can I achieve that using xcomtp command. Also,
I want to check whether there is any record which is greater than 2500
bytes. If it is so, I want to redirect that record to some other file.
This re-direction is to be done before FTP.

Regards,
Ambarish.

Bill Marcum

2006-10-31, 1:31 am

On 30 Oct 2006 19:31:51 -0800, Ambarish
<ambarishj@gmail.com> wrote:
> Hi,
> I want to ftp a large file(10 GB) from one unix box to other. Can
> anybody plesae tell how can I achieve that using xcomtp command. Also,
> I want to check whether there is any record which is greater than 2500
> bytes. If it is so, I want to redirect that record to some other file.
> This re-direction is to be done before FTP.
>

Never heard of xcomtp, and neither have Yahoo or Google. Perhaps you
misspelled it?
Do you want the records larger than 2500 bytes to go only to the other
file, or to both files?

awk 'length>2500{print >>"otherfile";next}
{print | "ssh user@otherhost cat > remotefile"}' largefile


--
QOTD:
Talent does what it can, genius what it must.
I do what I get paid to do.
Ambarish

2006-10-31, 1:31 am

Hi,
sorry i mispelled it. it is "xcomtcp". I think the awk command will
read each line, it will take long time. i mean, i have tried awk
command but it is taking long time.
Bill Marcum wrote:
> On 30 Oct 2006 19:31:51 -0800, Ambarish
> <ambarishj@gmail.com> wrote:
> Never heard of xcomtp, and neither have Yahoo or Google. Perhaps you
> misspelled it?
> Do you want the records larger than 2500 bytes to go only to the other
> file, or to both files?
>
> awk 'length>2500{print >>"otherfile";next}
> {print | "ssh user@otherhost cat > remotefile"}' largefile
>
>
> --
> QOTD:
> Talent does what it can, genius what it must.
> I do what I get paid to do.


Bill Marcum

2006-10-31, 1:21 pm

On 30 Oct 2006 21:38:39 -0800, Ambarish
<ambarishj@gmail.com> wrote:
> Hi,
> sorry i mispelled it. it is "xcomtcp". I think the awk command will
> read each line, it will take long time. i mean, i have tried awk
> command but it is taking long time.


Without reading each line, how else will you determine which lines have
more than 2500 bytes?

> Bill Marcum wrote:
>



--
Paprika Measure:
2 dashes == 1smidgen 2 smidgens == 1 pinch
3 pinches == 1 soupcon 2 soupcons == 2 much paprika
Kenny McCormack

2006-10-31, 1:21 pm

In article <1162265511.670109.299480@e64g2000cwd.googlegroups.com>,
Ambarish <ambarishj@gmail.com> wrote:
>Hi,
>I want to ftp a large file(10 GB) from one unix box to other. Can
>anybody plesae tell how can I achieve that using xcomtp command. Also,
>I want to check whether there is any record which is greater than 2500
>bytes. If it is so, I want to redirect that record to some other file.
>This re-direction is to be done before FTP.


I doubt it is possible to FTP a file with any other protocol, anymore
than it would be possible to, say, write an English sentence in French.

Loki Harfagr

2006-10-31, 7:25 pm

Le Tue, 31 Oct 2006 17:39:17 +0000, Kenny McCormack a écrit_:

> In article <1162265511.670109.299480@e64g2000cwd.googlegroups.com>,
> Ambarish <ambarishj@gmail.com> wrote:
>
> I doubt it is possible to FTP a file with any other protocol, anymore
> than it would be possible to, say, write an English sentence in French.


Déjà vu! Touché, Monsieur le chat ;-)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com