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

Reply

Join Date: Apr 2009
Posts: 5
Reputation: Debangana is an unknown quantity at this point 
Solved Threads: 0
Debangana Debangana is offline Offline
Newbie Poster

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

 
0
  #1
Apr 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

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

 
0
  #2
Apr 15th, 2009
get the name of the directory after you login, see the documentation for the FTP module you are using for details.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 5
Reputation: Debangana is an unknown quantity at this point 
Solved Threads: 0
Debangana Debangana is offline Offline
Newbie Poster

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

 
0
  #3
Apr 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

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

 
0
  #4
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 148
Reputation: ghostdog74 is on a distinguished road 
Solved Threads: 40
ghostdog74 ghostdog74 is offline Offline
Junior Poster

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

 
0
  #5
Apr 17th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC