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

CLIENT.SEND AND CLIENT.PUT
Started by
Guest_Guest_Mark_*
, Jun 01 2003 08:31 AM
6 replies to this topic
#3
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...
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!
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...

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!
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!
#5
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.
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.
Reply to this topic

2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users