Article 5GH3F Copy file that not exist

Copy file that not exist

by
marsk
from LinuxQuestions.org on (#5GH3F)
Hej
I need to copy a file.

cp /var/www/httpd.conf /etc/httpd/conf/httpd.conf

Butt if the file not exist I like the script to just continue, as for now the script hangs if the file isn't there.

I have tried:
cp /var/www/httpd.conf /etc/httpd/conf/httpd.conf | /dev/null

But its not helping.

Please help.

//marsklatest?d=yIl2AUoC8zA latest?i=rMHnYbknyIo:ffRWG8dioCs:F7zBnMy latest?i=rMHnYbknyIo:ffRWG8dioCs:V_sGLiP latest?d=qj6IDK7rITs latest?i=rMHnYbknyIo:ffRWG8dioCs:gIN9vFwrMHnYbknyIo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments