[opencms-dev] OpenCMS Shell script?

Robert Spielmann robert.spielmann at codecentric.de
Sun Jun 5 18:54:10 CEST 2011


Hi Daniel,

a couple of your requirements can easily be fulfilled. I wrote a blog
entry about this last year:

http://blog.codecentric.de/en/2010/04/how-to-automate-opencms-module-import/

For the automated JBoss restart, you can look at this blog post by a
colleague of mine:

http://blog.codecentric.de/en/2010/09/monitoring-jboss-as-start-with-jmx/

As far as replication is concerned, I have no idea about this. I have
never tested the automatic deployment in an OCEE environment. I tried
once to get input on that, but I never found anyone who could really
help me :)

Have fun creating your deploy robot - I can definitely say it's worth it ;)

Cheers
Robert

2011/5/31 Daniel Cassiani Rezende <talent.drezende at bvsistemas.com.br>:
> 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
>
>
> 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.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



-- 
Mit freundlichen Grüßen | Best regards

Robert Spielmann | IT Consultant

codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland
tel: +49 (0) 212.23362842 | fax: +49 (0) 212.23362879 | mobil: +49 (0)
151.14705709
www.codecentric.de | blog.codecentric.de | www.meettheexperts.de |
www.more4fi.de

Sitz der Gesellschaft: Düsseldorf . HRB 63043 | Amtsgericht Düsseldorf
Vorstand: Klaus Jäger (Vorsitzender) . Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz

Diese E-Mail einschließlich evtl. beigefügter Dateien enthält
vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie
nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und löschen Sie diese
E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte
Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die
unbefugte Weitergabe dieser E-Mail ist nicht gestattet.



More information about the opencms-dev mailing list