467,179 Members | 1,276 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

Problem in copying a file from Local HD to server!


My perl scripts run on a unix server which i access from a windows machine.

I wanted to copy a file from the local HD to this server.
But the problem is, whenever i try to access a file on the local Hd, it dosent allow at all. I discovered that, as the perl scripts are run on a remote machine, it is not possible to access the files on the local HD because of security issues. (correct me, if im wrong here)
I used the following code to copy the file from the source (local HD) to the unix server.


$srcfile = "C:/report.txt";
system("cp $srcfile /home/fdgj84/Klocwork/$srcfile");


Now, this doenst work at all. Is there any way of doing this.


Jun 16 '08 #1
  • viewed: 947
1 Reply
Expert Mod 2GB
How are you having the Perl script connect to the remote server? Are you using FTP? You have to connect to it with a transfer protocol if you are to put a file to it.


Jun 16 '08 #2

Post your reply

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

Similar topics

2 posts views Thread by WKC | last post: by
reply views Thread by phil | last post: by
reply views Thread by Kees Pijnenburg | last post: by
5 posts views Thread by Ian Davies | last post: by
3 posts views Thread by Viktor | last post: by
9 posts views Thread by Marshall Dudley | last post: by
9 posts views Thread by Mantorok | last post: by
reply views Thread by Grant Edwards | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.