Hi all
i am trying to copy file using FTP, when i am trying to copy it is copying to folder where i am running the script , instead of this i want to copy the file in anohter pc (not mine, not where i FTP,)
i am using the following code
#$ftp->get($name, '172.24.185.90/Builds/') or warn "Could not get $_, skipped: $!";
but here i am getting error that direcotry does not exists
your help we be apprecitated
6 1603
Your question is not easy to understand.
You have a perl script on your computer and it is FTPing to another computer and you want to send the file to a third computer? I don't think you can do that. FTP is bidirectional, from computer A to computer B. You can't direct the file transfer to computer C, at least not that I know of.
Your question is not easy to understand.
You have a perl script on your computer and it is FTPing to another computer and you want to send the file to a third computer? I don't think you can do that. FTP is bidirectional, from computer A to computer B. You can't direct the file transfer to computer C, at least not that I know of.
I have to whole heartedly agree with Kevin. What you are trying to do is not possible, directly. Instead, you will have to use your PC as the "go-between". In other words, you will have to download the file from its present host to your machine, then do another FTP and put the file to its destination PC. Direct transfer between those other two machines would only work if your script was sitting on one of them, and running there.
Regards,
Jeff
Your question is not easy to understand.
You have a perl script on your computer and it is FTPing to another computer and you want to send the file to a third computer? I don't think you can do that. FTP is bidirectional, from computer A to computer B. You can't direct the file transfer to computer C, at least not that I know of.
hI KEVIN
you got exactly to my heart.. thats what i wanted to do.. and you cleared my doubt...
thanks for your help
hI KEVIN
you got exactly to my heart.. thats what i wanted to do.. and you cleared my doubt...
thanks for your help
Hi kevin
i have one more question
can i get the file in different location(other than the directory where my script is running)in my pc
i mean to say, i am FTP to one pc and by using get method i am copying file to my pc but i want to copy file in the D directory where as my script is C directory
your help will be appreciated
Hi kevin
i have one more question
can i get the file in different location(other than the directory where my script is running)in my pc
i mean to say, i am FTP to one pc and by using get method i am copying file to my pc but i want to copy file in the D directory where as my script is C directory
your help will be appreciated
I suggest that you read up on the basic FTP commands.
You are connected to the other machine using FTP and are using the"get" method to retrieve the file. Before you issue the get, you would have to issue the "lcd" command to change the directory on your local machine.
Regards,
Jeff
Yes, as Jeff suggests, read the manual or documentation for the module you are using (Net::FTP?) It will show you the available commands like cd and other related information.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Dave Rahardja |
last post by:
OK, so I've gotten into a philosophical disagreement with my colleague at
work. He is a proponent of the Template Method pattern, i.e.:
class foo
{
public:
void bar() { do_bar(); }
protected:...
|
by: Chris |
last post by:
Hi
I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
|
by: daniel.w.gelder |
last post by:
I wrote a template class that takes a function prototype and lets you
store and call a C-level function, like this:
inline string SampleFunction(int, bool) {..}
functor<string (int, bool)>...
|
by: greenflame |
last post by:
I am trying to make a matrix object. I have given it some properites. I
am trying to add a method. When I call the method by Test.showDims(...)
I want to only enter one input, that is the method by...
|
by: Nick Flandry |
last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my
development environment (Win2K server running IIS 5) and a test environment (also Win2K server
running IIS...
|
by: JohnR |
last post by:
From reading the documentation, this should be a relatively easy thing. I
have an arraylist of custom class instances which I want to search with
an"indexof" where I'm passing an instance if the...
|
by: Mihai Osian |
last post by:
Hi everyone,
Given the code below, can anyone tell me:
a) Is this normal behaviour ?
b) If it is, what is the reason behind it ? I would expect the
A::method(int) to be inherited by B.
...
|
by: Steve Richter |
last post by:
in a generic class, can I code the class so that I can call a static
method of the generic class T?
In the ConvertFrom method of the generic TypeConvert class I want to
write, I have a call to...
|
by: allendowney |
last post by:
Hi All.
In a complex inheritance hierarchy, it is sometimes difficult to find
where a
method is defined. I thought it might be possible to get this info
from the
method object itself, but it...
|
by: VK |
last post by:
<OT>I am finishing TransModal 0.1 so planning to move it from alpha to
beta stage.<OT>
Besides that I am planning to write an introductory to inheritance
schema currently used in Javascript...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |