ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: Ucopy Looping doing File Transfer  (Read 3081 times)

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« on: November 10, 2005, 11:05:50 am »


While trying to transfer a file from Windows to Unix, Ucopy is looping over and over again transferring the files.  How do I get this to stop?

Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #1 on: November 10, 2005, 11:49:19 am »

Hit cancel. If there are multiple files it might have to finish one before stopping. If that doesn't work, kill it in task manager.
Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #2 on: November 10, 2005, 11:57:58 am »


That did not seem to help, even transferring one file is keeps looping.

Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #3 on: November 10, 2005, 12:26:02 pm »

What do you mean by "looping"? Is the packet count going from 0 to some number then back to zero again??

What transfer protocol settings are you using??
Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #4 on: November 10, 2005, 02:19:43 pm »


What I mean is, the packet number goes from zero to the end of the file and then starts back at zero.

This problem was happening to a client of ours, and did not know if it was also happening to me.  I just tried to do the exact same thing and the problem also occurs with my PC and Unix File Server.  We are using YMODEM, 19200 baud, AUTO and CRC16.

The files we are transferring are HIPAA Compliant files that are one record long.  The Unix File Server is where our application runs and they use the PC to transmit the file to in the case Medicare.  In transferring the data from the Unix File Server, it works just fine no problems.  When they receive a file from Medicare to transfer back to the Unix File Server is when we have problems.

In playing around with this, I noticed the files from Medicare have a number of spaces at the end of the record.  I tried removing the trailing spaces and that fixed the problem.  So my question is there a better way to transfer the files or do I need to write a program to remove those trailing spaces?

Any help would be very much appreciated.

Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #5 on: November 10, 2005, 02:26:49 pm »

Very weird. You shouldn't have to remove anything. Try with xmodem checksum and a 128 byte block size. Report results please.
Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #6 on: November 10, 2005, 02:58:23 pm »


That did not work, I received a message;

          Timed out error (filename)

Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #7 on: November 10, 2005, 03:02:30 pm »

Try ymodem, text, 128 bytes, crc16

If that doesn't work, try quoted ymodem.

Are you sure you don't have a permissions problem on the write (on unix)??
Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #8 on: November 10, 2005, 03:11:55 pm »

Neither option worked.

Again, I think it is the HIPAA type file.  I removed the trailing spaces and it transferred just fine.  I guess I will need to write something on the Windows side before transferring the file.

Thanks for the help.
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #9 on: November 10, 2005, 04:23:57 pm »

One last thing. Try forcing a binary file transfer.
BTW, what version do you have on unix?

ucopy

with no args on unix will give you the version
Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #10 on: November 11, 2005, 09:51:16 am »

Tried using binary in the file transfer and that did not work either.

The Unix version is 5.37

Logged

solcon

  • Sr. Member
  • ****
  • Posts: 25
  • Place Personal Text Here
Ucopy Looping doing File Transfer
« Reply #11 on: November 11, 2005, 10:18:00 am »

I looked at the file again and noticed a Control-Z at the end.  When I removed that character, it transfers just fine.
 
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Ucopy Looping doing File Transfer
« Reply #12 on: November 11, 2005, 10:34:22 am »

Thanks for the info. Control-Z is the REALLY old way to mark the end of a text file. It's bizzare that it would affect a binary file transfer. Seems like it's a flaw in ucopy, though I'm not sure on which end.
Logged
 

Page created in 0.066 seconds with 20 queries.