Ftp woes [Not over]

Dave Cragg dcragg at lacscentre.co.uk
Wed Apr 24 02:12:01 EDT 2002


At 10:05 pm -0400 23/4/02, Tim wrote:

>Just when I thought that everything was peachy, I realized that the stack
>that I'm compressing and uploading to an ftp server gets uploaded, but does
>not retain any changes. I have save stack "TestStack" in the script of the
>shell stack, but when I download -decompress-and open that stack, no
>modifications are visible. This is strange.
>

For anyone following this thread, here are some follow-up exchanges 
between Tim and myself that took place off the list.

At 12:50 am +0100 24/4/02, Dave Cragg wrote:
>I can't be sure what's happening, but here's a guess. If I'm wrong,
>let me know.
>
>You opened the stack on the server by downloading using the method
>in the earlier mail. I.e.
>
>go stack decompress(url tUrl)
>
>This stack has no filename property as it was opened from data in
>RAM, not from a file.  If you try to save this stack, it will have
>no effect as there is no file to save to.
>
>To make changes, be sure you are opening the stack directly from the
>local file. Then save, and upload the file to the server again.

At 10:21 pm -0400 23/4/02, Tim wrote:
>So, I¹m uploading the local version on my disk instead of the RAM version.
>How can I then save the RAM version to disk and then upload it? The point
>being, that I want the changes saved and uploaded, and then download the
>modified (changed) version again, etc., ad infinitum.


At 7:58 am +0100 24/4/02, Dave Cragg wrote:
>In that case, you'll have to temporarily save the changed stack to a
>file, and then upload the file.
>
>Something like this:
>
>##make whatever changes
>save this stack as <temp filename>
>put url ("binfile:" & <temp filename>) into tNewStackData
>libUrlFtpUpload compress(tNewStackData), <url>, <message>

Cheers
Dave Cragg



More information about the use-livecode mailing list