Copy one file to multiple vhost directories
I'm administering a server that uses Plesk, and I need to copy the vhost.conf file to the conf folder for every vhost that begins with a certain word - we'll call it "unique".
To accomplish this, I tried running the following:
# cp vhost.conf /var/www/vhosts/unique*/conf/
It does copy to one folder, but kicks out the following error for the rest:
cp: omitting directory `/var/www/vhosts/unique1.com/conf/'
cp: omitting directory `/var/www/vhosts/unique2.com/conf/'
I saw someone mention in another thread that it is not possible in Linux to copy one file to multiple directories without a shell script. If this is the case, could someone steer me to a script that would be helpful here? I'd be most grateful.
Last edited by thetawaverider; 07-26-2007 at 04:19 PM.