Jump to content


- - - - -

CLIENT.SEND AND CLIENT.PUT


6 replies to this topic

#1 Guest_Guest_Mark_*

Guest_Guest_Mark_*
  • Guests

Posted 01 June 2003 - 08:31 AM

Can I use CLIENT.SEND or CLIENT.PUT if I have Linux server and Windows workstation to transfer file from Linux to Windows?

What is the difference between CLIENT.SEND and CLIENT.PUT

#2 Bill Loven

Bill Loven

    Expert

  • Members
  • PipPipPipPip
  • 147 posts
  • Gender:Male
  • Location:Coppell, United States

Posted 02 June 2003 - 12:36 PM

:D The CLIENT.PUT retrieves a file from the client and puts it on the server.

The CLIENT.SEND takes a file from the server and sends it to the client.

HTH.

bILL

#3 Andy Jones

Andy Jones

    Member

  • Members
  • PipPip
  • 41 posts
  • Gender:Male

Posted 03 June 2003 - 12:15 AM

Hi, there's two pairs of methods which can be used for transfering files:

Client.Receive -or- Client.Put - Transfers a client-side file to the server.
Client.Send -or- Client.Get - Transfers a file onto the client machine from the server.

I'd stick to one matched pair - either Receive with Send, or their synonyms/aliases Put and Get rather than mixing the two.


Historically, Receive and Send were the only two methods available in the early/beta releases of 4.7/5, but were voted counter-intuitive (back-to-front!).
Client.Receive was often thought to mean that the client would receive the file, where actually it's the server that receives it... :D
Because there could be existing code using them, they couldn't be altered, so the "FTP" standard synonyms Get and Put were added.
I'd suggest using Client.Get & Client.Put as they are probably more obvious in their behaviour, but each to their own!
Nothing is foolproof to a sufficiently talented fool...

Don't learn from your own mistakes - it's safer and more entertaining to learn from the mistakes of others!

Just because you can, it doesn't mean you should!

#4 Guest_Guest_Mark_*

Guest_Guest_Mark_*
  • Guests

Posted 03 June 2003 - 06:08 AM

Thanks Andy

I have one more qouestion: Can I use these methods for transfering files from Linux server to Windows client

#5 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,640 posts
  • Gender:Male
  • Location:Spain

Posted 03 June 2003 - 08:03 AM

Hi,

I have used these on AIX & Compaq Tru64 systems and they have worked fine so they should be fine for Linux also.

These is nothing documented to say thaty they should not be used on Linux...

Rob D.

#6 Ralph Gadsby

Ralph Gadsby

    Expert

  • Members
  • PipPipPipPip
  • 154 posts
  • Gender:Male
  • Location:United Kingdom

Posted 03 June 2003 - 10:15 AM

Be aware, however, that there is no conversion done by these CLIENT methods. This means, for example, that CR LF is not converted to LF when transferring from Windows to UNIX.

#7 Guest_Guest_Mark_*

Guest_Guest_Mark_*
  • Guests

Posted 03 June 2003 - 12:13 PM

Thanks

It works.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users