Hi,
I have a program that - via kermit - dials and logs into various
database systems. On some of these systems, I produce a file that is
subsequently downloaded. I use the rz and sz programs to do this. The
lines in my kermit command file to do that look like this:
output sz file_to_pull-\%c.zip\13
run rz -r < /dev/ttyS0 > /dev/ttyS0
(\%c is a unique number)
Recently, nearly 100% of these file transfers have been failing and I'm
pulling my hair out in an attempt to troubleshoot. What I've done, or
know so far.
1) I'm fairly certain the sending system is OK as I can dial in
"manually" with Windows Hyperterminal and download a file via
ZModem protocol.
2) I've tried many switches, the last of which look like this:
output sz -Z -w 2048 -a file_to_pull-\%c.zip\13
run rz -Z -w 2048 -a -vvvvv < /dev/ttyS0 > /dev/ttyS0
Output from the above recieve command looks like this (minus the
astericks):
**********************************************
mode:1
rz waiting to receive.zshhdr: ZRINIT 23000000
zgethdr: ZRINIT 23000000
got ZRINITmode:0
Transfer incomplete
*Cq0,]file_to_pull-74714813.zip1196 7611317462 100777 0 1 1196kL
+++ P
OK
OK
+++
ATQ0H0
***********************************************
Interestingly enough, if I comment out the sz command (so the remote
machine never gets the command to start sending the file) the same thing
happens: the recieve immediately terminates with similar debug output
***********************************************
mode:1
rz waiting to receive.zshhdr: ZRINIT 23000000
zgethdr: ZRINIT 23000000
got ZRINITmode:0
Transfer incomplete
************************************************
Again, this used to work fine! Anyone have an idea of what could be
going wrong?
--
Posted via http://dbforums.com