Hi friends,
I have one small doubt that is, i have to copy one file from tmp folder to the desktop. This is a modperl program, when i write linux command in that modperl program it is recognising tmp folder but it is not recognising the desktop folder. When i run that program in the browser it is telling the error like permission denied. My code is below:
I think the /home/sasi/Desktop/ path is looking for the current folder i.e) /usr/lib/perl/5.8.7/practice (or) /usr/local/apache/htdocs. That's why it is giving the error like that Permission Denied. What is the solution
It is compulsory, please help me.
I am using Linux(Ubuntu),M odperl.
I have one small doubt that is, i have to copy one file from tmp folder to the desktop. This is a modperl program, when i write linux command in that modperl program it is recognising tmp folder but it is not recognising the desktop folder. When i run that program in the browser it is telling the error like permission denied. My code is below:
Code:
package practice::filecopy;
sub handler
{
$r=`cp /tmp/31-Mar-2009.csv /home/sasi/Desktop/31-Mar-2009.csv` or die "cant copy the file $!" ;
return OK;
}1;
It is compulsory, please help me.
I am using Linux(Ubuntu),M odperl.
Comment