robbieC has asked for the wisdom of the Perl Monks concerning the following question:

I need to be able to send a file from a windows 2000 server to another remote server using a perl script . Net::FTP is no use as it is not installed on the Windows 2000 server I'm using and I can't get it installed. My ISP has told me to use ASP but I am finding that a bit of a nightmare. Are there any workarounds in Perl or will I just need to switch to an ISP with Unix servers.
  • Comment on sending a file to another server from Windows 2000 server by FTP

Replies are listed 'Best First'.
Re: sending a file to another server from Windows 2000 server by FTP
by growlf (Pilgrim) on Nov 10, 2001 at 16:37 UTC
    You could also (as a quick solution) just use the module locally. i.e. put the Net::FTP module in the local path and "use lib" to make the script find it... Net::FTP does not need much to work, and so can be fairly easily adapted to run as a local module I believe - As long as you dont mind the minor bloat in your code directory.

    Course my "Reborn Perl Monk" side says, just switch ISP's to one that has common sense, and the idea that the customer should get what s/he wants.. but *grins at Kudra* there is still enough of the DarkSide left in me to say this:
    In ASP, you can use the CDO (Collaberative Data Objects) to achieve what you are wanting - load the MSDN Library (if you have it - or go to MSDN Online - a free online version that is quite extensive and VERY helpfull) and look up how to use them.

    Another - BETTER method might be to use WSC (windows scripting components - download the wizard doodad free) to make a COM controll out of Perl Script or compile a perl COM object with the ActiveState dev kit.. and use the ISP's precious ASP as the binding glue.

    Keep in mind.. ASP will not do timed downloads for you, or any system event-trigering at all - like perl can. So, ASP will not solve your problems if you are wanting to do a timed daily transfer or somesuch, unless you manually go visit that page every day to trigger it.

    Hey! Does anyone know latin for "Don't Let the Stormtroopers Get Ya Down?" *grin*

    Update:Nolite te 'stormtroopers' carborundorum - Thanks Kudra

    *G*

Re: sending a file to another server from Windows 2000 server by FTP
by dws (Chancellor) on Nov 10, 2001 at 10:38 UTC
    I need to be able to send a file from a windows 2000 server to another remote server using a perl script .

    I have a pair of scripts that worked on NT4 for moving files to a web server box. They should be easy to adapt to Win2K. See "postbits.pl" and "catchbits.cgi" on my tools page.