View Single Post
Old 16th November 2006, 18:08
bpmee bpmee is offline
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 7 Times in 6 Posts
Default I borrowed this code piece from another script I saw

Hi Falko,

I found this code originally from another shell script on the web.

I just tried running it without the | /bin/sh and the shell showed the cp command, but nothing was actually copied...

The output was like the following:

cp -f /home/searchfeed.php /var/www/web35/web/site_source_aaaafa4/myfolder
Despite this output the file was not copied! Note, I'm trying to overwrite an existing file with a new version - perhaps I need to provide a command to remove this old file first?

I'm hesitant to do this only because I don't want to accidentally erase other files......
Reply With Quote