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.
//marsk


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.
//marsk