need to make a cp command executable via the web

this is it:

cp /home/path/index.shtml /home/other-path/index.shtml

it copies the file from an automatically built category to the homepage. Rather than doing automatically, I rather copy it this way.

I added the #!/usr/bin/perl op top and changed it's extension to .cgi but no luck. It works fine as it is via telnet ./....

what am I missing?

thanks in advance....

 

 

 

 

Top