Page 1 of 1
Turning off passive
Posted: Wed Mar 05, 2008 6:28 am
by CyJobes
How do I turn passive off when doing a comparison between a local directory and server using FTP?
What would the line look like?
ftp://foooo:foofighters.fooftp.com//dev.foobar.org/
Please provide a sample of either how this line would be changed, or of any changes elsewhere.
Thanks,
Cy
Re: Turning off passive
Posted: Wed Mar 05, 2008 7:02 am
by psguru
You should be able to achieve this by adding --no-passive-ftp option to wget command option in this file: C:\Program Files\ExamDiff Pro\Plug-Ins\wget\wget-1.10.2b\wget.js
Re: Turning off passive
Posted: Wed Mar 05, 2008 7:09 am
by CyJobes
Could you please supply an example?
Dang, another delay.
Re: Turning off passive
Posted: Wed Mar 05, 2008 8:20 am
by psguru
1. Open C:\Program Files\ExamDiff Pro\Plug-Ins\wget\wget-1.10.2b\wget.js file in your favorite editor (Notepad will do).
2. Replace
Code: Select all
cmdLine = "\"" + WScript.Arguments(0) + "\"" + " -r -nH --cut-dirs=" + nSlashes + " -P " +
WScript.Arguments(2) + " " + WScript.Arguments(1);
with
Code: Select all
cmdLine = "\"" + WScript.Arguments(0) + "\"" + " -r -nH --no-passive-ftp --cut-dirs=" + nSlashes + " -P " +
WScript.Arguments(2) + " " + WScript.Arguments(1);
3. Save the file, close the editor.
4. Run EDPro.