WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> FTP Plugin
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1178118433

Message started by Chris on May 2nd, 2007 at 5:07pm

Title: FTP Plugin
Post by Chris on May 2nd, 2007 at 5:07pm
I'm attempting to use the FTP plug-in but to send files to an emulated ftp which does not support the command CWD. Is there any way to tweak the ftp plug-in so that it does not use this command?


Many Thanks,

Chris

Title: Re: FTP Plugin
Post by Gert on May 3rd, 2007 at 6:26am
What kind of emulated ftp is that?
Can you create an account for me on that ftp server so I can experiment with it? If you do, please send the login details to my email.

Gert

Title: Re: FTP Plugin
Post by Chris on May 3rd, 2007 at 10:42am
Its an app which belongs to a customer of ours so its impossible for me to give you a login im afraid. It decides itself where to put files once it is supplied with one so commands like cd or cwd just return the message "Syntax error" which seems to cause WD to return the error 40300 after a couple of attempts. To upload a file all that it will really allow you to do is the command 'put' and then the filename.

I realise a batch file would do the trick easily but we use WD for the output which it writes to the event viewer which can easily be captured by out system management software and flag errors to us.

Many Thanks,
Chris

Title: Re: FTP Plugin
Post by Chris on May 15th, 2007 at 2:40pm
I began to wonder - is it possible to just use the FTP raw commands so that the ftp plugin makes the connection to the ftp server and then instead of trying to send the file goes straight to carrying out the listed ftp raw commands?

Many thanks,

Chris

Title: Re: FTP Plugin
Post by Gert on May 15th, 2007 at 4:04pm
I don't think that will work, because those commands are only started when the "normal upload" has completed successfully.
However, I just remember I have a script (a batch file) that can be started by the "automatically run an existing .bat file" plugin. That script uses the standard Windows ftp.exe program, so you have complete control over all commands that are sent to the FTP server.

Only problem (maybe) is that ftp.exe doesn't support secure ftp, nor does it support passive mode. Let me know if you are interested, then I will look for it.

Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.