CA Service Management

  • 1.  File spel call script vbs

    Posted Apr 27, 2018 06:40 AM
      |   view attached

    Attached part of the spel but what interests me to know is that within the spel there is a call to a vbs file. In this file obtener_prioridad.vbs()  a value is obtained, this value is collected in the spel.

    I would like if in a spel you can make this type of calls
    string lanzar_script;

    launch_script = "cscript.exe obtener_prioridad.vbs()"

    And if for the method send_wait() you can do something like this with the pass of corresponding parameters

    send_wait (0, this, lanzar_script, area, impacto, "// nologo");
    salida = msg [0];

    Attachment(s)



  • 2.  Re: File spel call script vbs
    Best Answer

    Posted Apr 27, 2018 07:44 AM

    Hi,

    if you want to call void function check this: CA SDM::.SPEL::. Exec(string)

    but if you want to return some data back to spel you need to use perl method: SPEL How to Execute Remote Reference via Perl code 

    Regards,

    Timur Alimov



  • 3.  Re: File spel call script vbs

    Posted May 03, 2018 05:33 AM

    Hi cdtj,

     

      Thanks for the information but the perl file in which folder I would go?. Majic too?

     

    Regards and thanks.



  • 4.  Re: File spel call script vbs

    Posted May 03, 2018 07:10 AM

    yeah, in a majic folder, dont forget to create maj file to register perl function as method.