PDA

View Full Version : newdir problem


jahknee
04-06-2004, 04:43 PM
when i use onsitenew.tcl in my welcome text, no rows outputed by the onsitenew script is starting with 200- (or whatever the code should be).

but when i trigger the script manually with SITE NEW all rows begins with 200-.

Why is this? i'm a member of a ftp ring where an indexbot indexes all ftp's. but when it's time to index my ftp the indexbot crashes just because that the output from SITE NEW in my welcome text is not starting with 200-. According to our admin every outputed line should start with the apropriate code if it should be RFC compliant.

Not sure if this is a ioftpd or newdir problem?

Mouton
04-06-2004, 04:59 PM
Newdir script should output correct prefix.
Until dark adds prefix to %[execute] super cookie.

jahknee
04-06-2004, 05:01 PM
Ok. until this is solved i had to modify the script myself now so that it outputs the correct codes. so now i use SITE NEW2 for the welcome text that adds the 200- prefix and the normal SITE NEW that doesn't add the prefix.

Mouton
04-06-2004, 05:09 PM
now that i think about it, i seem to remember that %[execute] got a parameter for the prefix...
maybe try %[execute(...)(...)(200-)]

jahknee
04-06-2004, 05:16 PM
yeah, that solved my problem! :) thanks alot for the quick answers!

bounty
04-09-2004, 06:25 AM
btw it was explained in newdir manual ;)