- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Perl FTP Help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 01:48 AM
11-06-2006 01:48 AM
I'm getting the following error.
I appreciate all help.
ERROR: could not cwd D:\inetpub\ftproot\apl at get_apl_files.pl line 19.
Yes, that is the correct directory, and I do have accecc to that directory. I can login no problem.
my $path = "D:\\inetpub\\ftproot\\apl";
if ( my $ftp = Net::FTP->new($host) ) {
print "Logging in to '$host' as user '$user'.\n";
$ftp->login($user,$pw) or die "Could not login";
$ftp->pasv();
print "Changing directory to '$path'\n";
$ftp->cwd($path) or die "could not cwd $path";
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 01:54 AM
11-06-2006 01:54 AM
Re: Perl FTP Help
D:\inetpub\ftproot\apl at get_apl_files.pl line 19.
Letter drives don't exist under Linux. Fix that code. OS is Linux?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 02:05 AM
11-06-2006 02:05 AM
Re: Perl FTP Help
I'm getting the file from windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 02:17 AM
11-06-2006 02:17 AM
SolutionAre you connecting to a Windows FTP server, or a linux FTP server? What platform are you connecting from?
It appears as if you want to ftp out of a linux box into a Windows FTP server. If so you shouldn't specify a full directory path to change to. Ex:
1. Windows FTP server is running and the default directory is c:\inetpub\ftproot.
2. When you login to FTP, you're already at that root and you'll want to 'CWD' into apl, which would put you in c:\inetpub\ftproot\apl.
3. Change your $path = "apl";
If you're trying to accomplish this in reverse, FTPing from a Windows box to a linux box, you'll want to use the proper win32 module:
http://www.digilife.be/quickreferences/QRC/PERL%20Win32%20Quick%20Reference.pdf
HTH.
Peace,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 02:27 AM
11-06-2006 02:27 AM
Re: Perl FTP Help
I'm going from Lunux to Windows.
Your Solution work. Thanks for you help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 02:28 AM
11-06-2006 02:28 AM