liburlftpcommand problem

Matthias Rebbe runrev260805 at m-r-d.de
Thu Oct 28 17:36:09 EDT 2010


Hi,

thanks for your suggestions.

In fact it was a CRLF after each entry.
I got that entries from a PUT URL command, which fetches the file list from an ftp server.
I removed all CRs, but forgot  that there could be also CRLFs.

Regards,

Matthias

Am 27.10.2010 um 15:28 schrieb Andre Garzia:

> oh sorry!!!!
> 
> I read it wrong!!!
> 
> I thought it was a file not found problem and not a selectedtext problem,
> check out for CR in that case, the selected text might have a trailing CR at
> the end.
> 
> On Wed, Oct 27, 2010 at 11:26 AM, Andre Garzia <andre at andregarzia.com>wrote:
> 
>> Matthias,
>> 
>> A shot in the dark but is this a virtual server or shared account? If this
>> is then there is a chance you're referencing the wrong path as the first
>> slash will make it a full path, try something like:
>> 
>> dele htdocs/visit05/files/" & tText
>> 
>> without the first slash. This way it will be relative to the current folder
>> on the server which is probably the logged user home.
>> 
>> andre
>> 
>> 
>> On Tue, Oct 26, 2010 at 6:33 PM, Matthias Rebbe <runrev260805 at m-r-d.de>wrote:
>> 
>>> Hi,
>>> 
>>> i want to delete a file on an ftp server.
>>> 
>>> With the following script
>>> 
>>> put the selectedtext of fld "fListe" into tText
>>> put "dele /htdocs/visit05/files/" & tText into tCmd
>>> get liburlftpcommand(tCmd, tFtpServer, tFtpUser, tFtpPass)
>>> 
>>> i get an error  550 /htdocs/visit05/files/Test3: No such file or directory
>>> 
>>> I tried list fields and scrolling list fields.
>>> 
>>> But with the following script
>>> 
>>> put "Test3"
>>> put "dele /htdocs/visit05/files/" & tText into tCmd
>>> get liburlftpcommand(tCmd, tFtpServer, tFtpUser, tFtpPass)
>>> 
>>> it works and the file is deleted.
>>> 
>>> Is there anything i am missing?
>>> 
>>> Regards,
>>> 
>>> Matthias
>>> 
>>> 
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> 
>> 
>> 
>> --
>> http://www.andregarzia.com All We Do Is Code.
>> 
> 
> 
> 
> -- 
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list