[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Remove site in shell



Ken Marcus wrote:
> Here is a perl script that uses the shell tools. I have used it to delete
> multiple sites off a server. The listofsites.txt is a text file with one
> doman per line in the format of www.theirdomain.com
Or-Or added:
> That's funny, I just wrote a perl script that's almost identical to that.
> Anders's suggested Jeff's shell tools which is working very well so far.

Ah, Perl - the "swiss army chainsaw" of system maintenance. :-)

Why not just use the xargs command ?

xargs < listofsites.txt --max-args=1 /usr/sbin/cdelvsite --fqdn

--anders