Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendfile and Getfile

Status
Not open for further replies.

aaiqbal

Programmer
Sep 15, 2003
26
US
Hi Again,
This is Abdul. I want to thank those of you who have helped me. I really appreciate it. I do have another question.
My understanding of Sendfile is that it simply starts the file transfer without the receiving device calling Getfile. I want to be able to control the transfer from the receiving side. I'm also confused as to what Getfile is used for if a Sendfile command automatically sends the file. Does the Getfile command get a file from a remote device without the remote device initiating a Sendfile command for the requested file? What I would like is to initiate a Sendfile command from one device, but not have the transfer actually start until the receiving device initiates a Getfile command. Please let me know if this is possible. Thanks in advance for any help.
 
Assuming you are using a script on both ends of a connection, a sendfile must be isused by the machine that will send the file before a file transfer can begin. Getfile is used only to handle the receiving process on the machine that is saving the download. In cases of automatic-download protocols like Kermit and Zmodem, a getfile command is not truly needed to start the file transfer, but it is needed to reliably pause your script while the transfer is underway so your script does not get ahead of itself.

If you are using Zmodem or Kermit, you can turn off the automatic download option in Procomm's Setup dialog, which will mean a getfile command is necessary to start the transfer. However, you would only be able to pause for a certain amount of time after the sending machine begins the file transfer - otherwise it will timeout and cancel the transfer. To turn this option off, select the Options | Data Options | Advanced menu item, uncheck the Enable automatic download start for Zmodem and Kermit checkbox, and click OK to save your changes.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top