By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,541 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,541 IT Pros & Developers. It's quick & easy.

how to copy a file from the local hard disk to a mapped server

P: 68
Hi,
I have mapped a server to my computer (called it H drive). all my perl scripts run on the server.
Now, i would like to copy a file from my local hard disk (C drive) to this server.

As my scripts are running on the server, so while copying the file, the server is not able to recognize the location of the C drive (which is my local computer)

So, how do I make the server recognize my local computer and hence copy the file to the server.


Thank You,


Ravi
Sep 22 '08 #1
Share this Question
Share on Google+
1 Reply


numberwhun
Expert Mod 2.5K+
P: 3,503
I assume that when you say "running on the server", that they are running through the scheduler and not running them from the command line on your local computer. If that is the case, then to the script(s), your files on your local computer are remote. You cannot simply copy them from your computer to the server via the scripts on the server because the server knows nothing of the mount that you have created. Its not an open, bi-directional transfer pipe.

To do this, you will have to write a script that connects to your local computer somehow and pulls the files from it, remotely.

Regards,

Jeff
Sep 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.