Tiemo Hollmann wrote:

> Has anybody any idea, what is happening here with the file and why
> two different FTP programs upload a different result on my server
> with the same file, both using ASCII mode? Why is the file expanding
> in my old process, but is missing a CR in each line? Is there perhaps
> anything I can change locally on my file? Any ideas?

What constitutes text mode may vary from program to program. In LC is means replacing NULLs with spaces and replacing ASCII 10 to OS-native line endings for writes, or replacing OS-native line endings to ASCII 10 for reads.

To get the exact same data for all programs use binary mode, which will prevent the program from altering the data.


If this file transfer is only for yourself, it may also be helpful to consider setting up shared SSH keys with the machine, so you can use LiveCode to transfer the file securely by calling either scp or rsync through the shell function. It takes only a couple minutes to set up a shared SSH key, and opens up many wonderful opportunities for securely transferring files within LC.

There's a brief tutorial on this in the forums:
<http://forums.livecode.com/viewtopic.php?f=54&t=20853&p=106171>

I found this tutorial even simpler, though the basic steps are essentially the same:
<https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2>


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to