[opencms-dev] OpenCMS Shell script?

Daniel Cassiani Rezende talent.drezende at bvsistemas.com.br
Tue May 31 18:26:16 CEST 2011


Hi, folks,


I was researching about a way to create a scheduled deploy of a new module (in a linux), and I found out about OpenCMS Shell.

My goal is to create a robot application that, let's say at 1:00 AM, do the following routine:

1- search for new modules in a pre-set DEVelopment machine's folder;
2- if a new module is found, copy the module.zip in a PRODuction's machine pre-set folder (WEB-INF\packages\modules is fine by me);
3- run the OpenCMS Shell in PROD;
4- delete the old module;
5- import the new module;
6- since I have OCEE, replicate the module across the cluster's slaves;
7- leave the OpenCMS Shell;
8- restart JBoss;
9- clean our PROXY's cache (that's kinda ready already; it supports single line command from a linux prompt);
10- run an application that warns me by e-mail and sms that a module was found and deployed (also, ready as well).

However, I'm having trouble about how to put steps 3 to 7 in a linux script...

Any ideas about how to automate a chain of commands in OpenCms Shell?


Thanks,


Daniel Cassiani Rezende
-------------- next part --------------

Esta mensagem e seus anexos podem conter informações confidenciais ou privilegiadas. Se você não é o destinatário, você não está autorizado a utilizar o material para qualquer fim. Solicitamos que você apague a mensagem e avise imediatamente o remetente. O conteúdo desta mensagem e seus anexos não representam necessariamente a opinião e a intenção da empresa, não implicando em qualquer obrigação ou responsabilidade por parte desta. 
 
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not imply any legal obligation or responsibilities from this company.   


More information about the opencms-dev mailing list