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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thanawala27
    New Member
    • Mar 2007
    • 68

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

    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
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    Working...