I've recently been working with a customer who has a larger number of Endeca CAS crawls (300+) defined for their Endeca-driven enterprise search application. Occasionally, the need arises to rerun all of their crawls consecutively.
There are a number of ways to skin this cat; This certainly could be scripted using the java web service stubs that ship with CAS or scripted using java beanshell script in their AppConfig.xml file.
Recently, however, I wrote a quick and dirty DOS .bat file that leverages the cas-cmd.bat utitility to do this.
For those of you who find this need and don't feel like sinking time into a java project, enjoy:
call cas-cmd listCrawls > crawls.lst
for /F "delims=" %%A in (crawls.lst) do CALL :RUNCRAWL %%A