Thanks Jon.

I used the command line FTP client without the same problem occuring. That's
why I posted to the list asking if anyone knows of a Net::FTP specific issue
concerning IIS.

Matthew



----- Original Message -----
From: "Jon Gunnip" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, August 04, 2001 8:20 AM
Subject: Re: [Boston.pm] trouble with IIS driven FTP server using Net::FTP


> I use Net::FTP to access IIS on WinNT quite a bit at work.  When I have a
> problem, I debug it by trying to do what perl was doing using the Windows
> command line ftp client.  In your case, login, cd '/wholesite' and if that
> doesn't work, it is a problem with the way the IIS server is configured.
>
> As for files showing up, but directories not showing up, I'm guessing you
> will find the same behavior from the command line ftp client.
>
> As a side note, by default you can only view the ftp directory (e.g
> c:\Inetpub\wwwroot).  To make it more unix-like, you can add Virtual
> directories in the IIS Admin that allow you to traverse the whole file
> system.  For example, add /C: pointing to C:\ and now you can access
> /C:/Winnt, etc...   There's probably a good reason that this is not on by
> default - I guess Windows doesn't have a very good (or easy to administer)
> multi-user security architecture.
>
> If anyone is interested, my first python project was an ftp script.  It
> takes an xml config file, are mirrors/copies/deletes directories and
files.
> It can do search and replace on the files during the ftp.  I pasted it
> below.
>
> Perl is great, but it good not to HAVE to use it all the time.  (I'm
> learning perl's cousin, Ruby, as well).
>
> Jon

<--- SNIP --->

>
>
>
>
>
>
> >From: "Matthew Brooks" <[EMAIL PROTECTED]>
> >Reply-To: "Matthew Brooks" <[EMAIL PROTECTED]>
> >To: "Boston Perl Mongers" <[EMAIL PROTECTED]>
> >Subject: [Boston.pm] trouble with IIS driven FTP server using Net::FTP
> >Date: Fri, 3 Aug 2001 22:04:48 -0400
> >
> >Anyone know if there is an issue with using Net::FTP to access a MS IIS
> >driven FTP server?
> >
> >I'm getting an error that says the server can't find the specified file,
> >even though the directory in question exists. (See below for debugged
> >output) Also of note, just to see what was going on I added the lines...
> >
> >print $ftp->dir;
> >$ftp->quit;
> >exit;
> >
> >...to the script right before the $ftp->cwd($path) call that is failing
and
> >I noticed that none of the directories are showing up in the list, only
the
> >files in the ftp / directory appear.
> >
> >Here's the output. The lines that don't start with Net::FTP are generated
> >by
> >print statements in the code:
> >
> >Connecting to 192.168.0.182...
> >Net::FTP: Net::FTP(2.56)
> >Net::FTP:   Exporter(5.562)
> >Net::FTP:   Net::Cmd(2.18)
> >Net::FTP:   IO::Socket::INET(1.25)
> >Net::FTP:     IO::Socket(1.26)
> >Net::FTP:       IO::Handle(1.21)
> >
> >Net::FTP=GLOB(0x1a750f8)<<< 220 WWW002 Microsoft FTP Service (Version
5.0).
> >OK
> >Logging in...
> >Net::FTP=GLOB(0x1a750f8)>>> user mjbrooks
> >Net::FTP=GLOB(0x1a750f8)<<< 331 Password required for mjbrooks.
> >Net::FTP=GLOB(0x1a750f8)>>> PASS ....
> >Net::FTP=GLOB(0x1a750f8)<<< 230 User mjbrooks logged in.
> >OK
> >Setting session to binary mode...
> >Net::FTP=GLOB(0x1a750f8)>>> TYPE I
> >Net::FTP=GLOB(0x1a750f8)<<< 200 Type set to I.
> >OK
> >Changing to /wholesite...
> >Net::FTP=GLOB(0x1a750f8)>>> CWD /wholesite
> >Net::FTP=GLOB(0x1a750f8)<<< 550 /wholesite: The system cannot find the
file
> >specified.
> >Net::FTP=GLOB(0x1a750f8)>>> QUIT
> >Net::FTP=GLOB(0x1a750f8)<<< 221
> >
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>

Reply via email to