ftp or copy

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

ftp or copy

Post by vsi »

I was trying to ftp files (through Humming bird software) from ServerA to desktop then to ServerB, but the ftp fails for one of the files probably due to the size (it says the file doesnt exists, although its there).

How can i copy from ServerA to ServerB
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

the FTP process shouldn't fail, or when it does it will give a better error. Yo are probably using Hummingbird to connect to your UNIX machine, or are you using a special FTP tool/program?
You do have other options in UNIX such as an NFS mount or things like scp and rcp; but most likely you will see errors there as well.
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi Vsi...
Check your path too.. There is no chance of saying "file doesn't exists" even after file existings..
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

the FTP process shouldn't fail, or when it does it will give a better error.
I am getting error like this, all i did was drag and drop to my desktop/to ther server as well, same result

550 <filename>: No such file or directory
Yo are probably using Hummingbird to connect to your UNIX machine, or are you using a special FTP tool/program?
Yes I am using Hummingbird to connect to connect to unix and there is a ftp tool provided with it.
You do have other options in UNIX such as an NFS mount or things like scp and rcp ; but most likely you will see errors there as well.
The same file when I copy within same server is not giving any error.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Suggestion: Don't use a 3rd party FTP tool, open up a session in UNIX and use the builtin FTP command, it might not be drag-and-drop but it will work.
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

i typed ftp

i get a prompt ftp>

now how do i go ahead, lets say, I need to copy


from
UsrA@ServerA - /home/UsrA/FileA
to
UsrB@ServerB - /home/UsrB/FileB
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I now see why you wanted to use the drag-and-drop interface.

When you use ftp you need to do:

a) "connect <remotemachine>"
b) "cd <remotedirectoryname>"
c) "lcd <localdirectoryname>"
d) "put <filename>" to copy local file to remote or "get <filename>" to copy remote file to local machine.
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi vsi..
Try to do this too:

Login to your ServerB with the user id and password.Go to /home/UsrB..And now type ftp ServerA,give user id and password..enter check for your path..and go to /home/UsrA next type get FileB..next type bye and check whther you have your file in the path you not..If you want rename the FileB to FileA then use mv command..
from
UsrA@ServerA - /home/UsrA/FileA
to
UsrB@ServerB - /home/UsrB/FileB
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

I now see why you wanted to use the drag-and-drop interface
you got it right :lol:

thanks for the help its working now.

* An elementary question, why do we need scp & ftp both?? Although scp is just one command and ftp allows to login?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you have scp or rcp installed then they are easier to use; I look at them as modern extensions to ftp... they also allow you to copy directories, which the standard ftp protocol does not.
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

Suggestion: Don't use a 3rd party FTP tool, open up a session in UNIX and use the builtin FTP command, it might not be drag-and-drop but it will work.
Do all 3rd party tools fail for drag and drop if the file size is huge? or is it only few of them.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Philosophical Observation
One cannot with confidence answer any question containing the word "all".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Post by prabu »

ray.wurlod wrote:Philosophical Observation
One cannot with confidence answer any question containing the word "all".
...
Ray, by your own logic,


Practical Observation
One can always answer "maybe" with confidence to any question containing the word "all" and get away with it :wink:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can't believe me, believe me! 8)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Post by prabu »

ray.wurlod wrote:You can't believe me, believe me! 8) ...
"i beleive you! if you beleive me!!", completing the soliloquy :lol:


Philosophical Observation
One can always say "believe" if one cannot say "trust" :wink:
Post Reply