[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Remove site in shell
- Subject: Re: [cobalt-developers] Remove site in shell
- From: Anders <andersb@xxxxxxxxxxx>
- Date: Wed Nov 26 09:54:01 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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