<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Jaime<br>
    <br>
    Thanks for the prompt answer!<br>
    <br>
    Now I have 2 more questions:<br>
    <br>
    - how can I add new VN MAD? (I don't want to modify dummy, vmware,
    etc). i tried just creating a new directory inside the remotes/vnm
    dir but it didn't work. Maybe I need to do something else.<br>
    <br>
    - how can I use on the script things that are related to the actual
    VM being deployed? (like the MAC address of the VM, etc.)<br>
    <br>
    Thanks again.<br>
    <br>
    José<br>
    <br>
    On 04/25/2012 01:35 PM, Jaime Melis wrote:
    <blockquote
cite="mid:CA+HrgRp5YBKzQ3RBjYq0xvWUmba4ytfmQfwiySXRu0=CsL2QVg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div class="gmail_extra">Hello José,</div>
      <div class="gmail_extra"><br>
      </div>
      <div class="gmail_extra">of course: pre, post and clean scripts
        can be any executable script you want. You may write them in
        python, ruby, bash or whichever languague you may choose.</div>
      <div class="gmail_extra"><br>
      </div>
      <div class="gmail_extra">In particular, if you want to run another
        script from the existing pre/post/clean scripts you can add
        lines similar to the following to them:</div>
      <div class="gmail_extra">
        <br>
      </div>
      <div class="gmail_extra">
        system("/path/to/another/script.sh")</div>
      <div class="gmail_extra"><br>
      </div>
      <div class="gmail_extra">Regards,</div>
      <div class="gmail_extra">Jaime<br>
        <br>
        <div class="gmail_quote">
          On Wed, Apr 25, 2012 at 1:29 PM, José Valerio <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:jose.valerio@unine.ch"
              target="_blank">jose.valerio@unine.ch</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hello,<br>
            <br>
            I would like to see some examples of the "pre", "post" and
            "clean" scripts that one can make on VNM, I saw for example
            the scripts on /var/lib/one/remotes/vnm/ebtables and they
            are ruby scripts...<br>
            <br>
            let's say for example that I want to execute some shell
            commands before deploying my VM, how could write this on the
            "pre" script?<br>
            <br>
            I'm using OpenNebula 3.4<br>
            <br>
            thanks in advance<span><font color="#888888"><br>
                <br>
                José Valerio<br>
                Université de Neuchâtel<br>
                _______________________________________________<br>
                Users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Users@lists.opennebula.org"
                  target="_blank">Users@lists.opennebula.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
                  target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      Jaime Melis<br>
      Project Engineer<br>
      OpenNebula - The Open Source Toolkit for Cloud Computing<br>
      <a moz-do-not-send="true" href="http://www.OpenNebula.org"
        target="_blank">www.OpenNebula.org</a> | <a
        moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
        target="_blank">jmelis@opennebula.org</a><br>
    </blockquote>
    <br>
  </body>
</html>