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!

hosting scripts and file up/download questions

Status
Not open for further replies.

zeroendless

Programmer
Mar 20, 2003
23
US
This is a repost to the last thread which was missing a subject.

I need to do a file transfers with procomm plus using modem data-dial up between 2 locations. It’s a automated weekly M-F process. The user side will request for up/download files to the host once log in.

I played with the host.wax, setup the host at home and dial in from company. It seems to works fairly great. But I don’t have the changes to test the upload file yet. Initially, I was thinking to let both station acts as a host and dial in to download file. But, it looks like I can just let the other location to dial in and perform file upload and download to the host station, correct?

At time 3.00Am every morning, exe host script at Station A and waits call from Station B
Station B calls and logins with username and password, download/upload files and then logout.
Station B performs error checking on downloaded files, if OK, Then, PW exits at both station. Else download file again. The error checking can come later, the main thing is to get the process up and running.

I hate to see all the options/select menu on the host.wax and would like to come out with something more simple and straightforward. Say welcome message, prompt for username, password, service request ( without y/n? options)

If raw ASCII is used, the file content will be printed at screen and procomm plus will have to capture and save it into file, correct? Which is the security concern using Z-modem protocol and ASCII?

Any inputs is greatly appreciated
 
You would only need the machine that is accepting calls running the host script.

To launch the script at a set time, you'll either need a stub script that launches the main script with the chain command, or you can use the Windows Scheduler. I've heard of people having problem with Procomm's built-in scheduler, so it may be wise to avoid it. The pwexit command can be used to close the script when the file has been verified as being successfully received.

You are correct about the contents needing to be captured if an ASCII or Raw ASCII transfer is made. For that reason, I would recommend using Zmodem as the file transfer protocol.


aspect@aspectscripting.com
 

I'm getting the transfer aborted message and these chracters when uploading file. The download part is fine and it doesn't printed this chraters when transfering. Protocol is Zmodem.

Is it the hardware setting issues? do i have to specify both the host and client setting to be identical? what is the recommended hardware setting to do the file tranfer on both side? for instance, data connection preferences or the data bit, parity and so on. i'm using USR external V.92 on both size.
here's the screen when uploading file
--------------------------------------------------
Begin your transfer procedure... (CTRL-X aborts)
**B0100000027fed4
**B0100000027fed4
**B0100000027fed4
**B0100000027fed4
**B0100000027fed4

TRANSFER ABORTED!
--------------------------------------------------
 
The **B0100000027fed4 characters are from the initialization of the Zmodem transfer. If I understand your situation correctly, you have told the host script that you are about to upload the file, but I am wondering if you told the local copy of Procomm to begin the file transfer. To do so, select the Data | Send File menu item, select the file to transfer, and click on the Open button.


aspect@aspectscripting.com
 
thank you it worked! so we have to manually select the menu and initial the sent file. well, I have to code the Aspect to do the automatic file upload. it there a way to do it?

Have another question, The host setup at home work ok, but the one at workstation can't seem to take the call, all throw me with "Tapi Operation failed for unknown reasons."
hardware setup issues? or do i have to reinstall procomm?
 
You will want to use the sendfile command in the script on the machine that is calling into the host script. That will replace the manual upload you are doing now.

Are you able to accept a call if you don't use the host script, but just select the Options | Answer Options | Procomm Plus Answers Calls and and Options | Answer Options | Data menu items? This would rule out the host script as being a problem on that particular machine. Also make sure that host is only accepting data and not both data and fax calls (data and fax is not an option by default) in case your modem does not support adaptive answer. You might also try the same with the copy of Hyperterminal that ships with Windows (this would rule out Procomm itself as a problem).

I also found one article in the Symantec knowledge base that may help, it is here:


aspect@aspectscripting.com
 
Located the problem, the same data line is used for fax as well. Unplugged the line from the fax machine and it worked like a charm.

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top