[BlueOnyx:14059] Re: FYI shell remove all vsites

Gerald Waugh gwaugh at frontstreetnetworks.com
Wed Nov 27 11:26:58 -05 2013


On 11/27/2013 09:45 AM, David Hahn wrote:
> On 11/26/2013 9:47 PM, Gerald Waugh wrote:
>> #!/bin/csh
>> #
>> # Loop through and remove all vsites while I am drinking a beer or two
>> #
>> foreach site( `ls /home/sites/` )
>>     /usr/sbin/cdelvsite --fqdn $site
>>     sleep 1
>> end
> I like that..

Yes, Just used it on a server that had a botched migration, then the
next migration worked OK.
Better than using the GUI and waiting for each site to be deleted so you
can delete the next one.
I like csh for shell scripting.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20131127/4f1f878a/attachment.html>


More information about the Blueonyx mailing list