Hi,
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.
[code]
$srcfile = "C:/report.txt";
system("cp $srcfile /home/fdgj84/Klocwork/$srcfile");
[\code]
Now, this doenst work at all. Is there any way of doing this.
Thanks,
Ravi
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.
[code]
$srcfile = "C:/report.txt";
system("cp $srcfile /home/fdgj84/Klocwork/$srcfile");
[\code]
Now, this doenst work at all. Is there any way of doing this.
Thanks,
Ravi
Comment