943,815 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 799
  • Perl RSS
Apr 15th, 2009
0

How to verify if the login directory on the windows ftp server is the correct dir?

Expand Post »
Hi

I am trying to ftp files from a windows server to a unix machine. When I login with the required credentials into the windows server , I want to make sure that the login directory is the correct one else I should change directory before initiating the ftp process.
I am using a perl script for ftping the files.
Please help.

Regards
Debangana
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Debangana is offline Offline
5 posts
since Apr 2009
Apr 15th, 2009
0

Re: How to verify if the login directory on the windows ftp server is the correct dir?

get the name of the directory after you login, see the documentation for the FTP module you are using for details.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Apr 15th, 2009
0

Re: How to verify if the login directory on the windows ftp server is the correct dir?

Hi

I have tried using
[ftp->pwd]
to get the name of the current directory after I login but on windows server it always shows '/' as the login directory so I am not able to verify if it's the correct one.

Please help.

Regards
Debangana
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Debangana is offline Offline
5 posts
since Apr 2009
Apr 15th, 2009
0

Re: How to verify if the login directory on the windows ftp server is the correct dir?

Assuming you are using NET::FTP, look at the ls() or dir() functions and see if one of them will work.
Last edited by KevinADC; Apr 15th, 2009 at 3:58 am.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Apr 17th, 2009
0

Re: How to verify if the login directory on the windows ftp server is the correct dir?

i think you shouldn't need to worry too much on whether its the correct directory because you would have set it properly when configuring your FTP server.
Reputation Points: 75
Solved Threads: 44
Junior Poster
ghostdog74 is offline Offline
156 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Flat file output
Next Thread in Perl Forum Timeline: Illegal hex digit





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC