Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Support > Archive > How to run a program from a CF Rule

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Support  / Archive  /

How to run a program from a CF Rule

[vitale, fabio]
fabio vitale
Novice
Novice
Posts: 107
fabio vitale - 09:08am, Feb 22 2022

I have a Ruby script that runs just fine when launched from the
windows command prompt but does not seems to be launched when invoked
from a CF Rule: I can see that the rule is fired but it seems that the
Ruby script is not launched (I do not know how to check while the
script is executed).

 From the command prompt I launch it as follow:

ruby my_script.rb --parameter_1=1 --parameter_2=2 --parameter_3=3

The MDaemon help is very sparse on how to setup a Run a program...
action.

I have no idea on what is going on.

Can someone please help me?


--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Pierre Piraux (apparently) - Feb 22, 2022 9:30 am (#1 Total: 3)  

via email  

Photo of Author
Pierre Piraux
Newbie
Newbie
Posts: 41
This is a cryptographically signed message in MIME format.

--------------ms060207080500050606010806
Content-Type: multipart/alternative;
 boundary="------------MZBCqtP0EtXYULOkjjYZwqW6"

--------------MZBCqtP0EtXYULOkjjYZwqW6
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello Fabio.
Just my two cents: shouldn't you explicitely specify the absolute path
of ruby.exe and of my_script.rb ?

Le 22/02/22 à 15:08, Fabio VITALE a écrit :
> I have a Ruby script that runs just fine when launched from the
> windows command prompt but does not seems to be launched when invoked
> from a CF Rule: I can see that the rule is fired but it seems that the
> Ruby script is not launched (I do not know how to check while the
> script is executed).
>
> From the command prompt I launch it as follow:
>
> ruby my_script.rb --parameter_1=1 --parameter_2=2 --parameter_3=3
>
> The MDaemon help is very sparse on how to setup a Run a program...
> action.
>
> I have no idea on what is going on.
>
> Can someone please help me?
>
>
> --MD-SUPPORT--------------------------------------------------------------
>
> This list is for questions and discussion about MDAEMON. To
> unsubscribe from this mailing list send an email to
> md-support-unsubscribe@mdaemon.com .
> --POWERED BY
> MDAEMON!-----------------------------------------------------
>
> --------------------------------------------------------------------------
>
> These forums are provided by MDaemon Technologies for user-to-user
> support and discussion.  MDaemon staff members may participate in the
> forums periodically but please recognize that this is not the official
> method of receiving technical support. To receive personal technical
> support please use the form here:
> http://www.mdaemon.com/Support/RequestSupport/
> --------------------------------------------------------------------------
>

--

-------------------------------------------------
*** THIS MAILBOX IS READ **once** PER DAY ***
-------------------------------------------------
Pierre Piraux, from*MHC sa/nv* -View Pierre Piraux's profile on LinkedIn <https://be.linkedin.com/pub/pierre-piraux/4/284/308>
email:ppiraux@mhc.be
Snail
Mail : MHC sa - 110 Avenue Pastur - 6001 CHARLEROI - BELGIUM
Web :www.mhc.be <http://www.mhc.be>
Phone: +32 71 36 60 62
Fax : +32 71 36 63 04
[ Never say "oops" in the operating room. ]

Legal disclaimer: as part of an active strategy of litigation and claim
prevention, please note that this message reflects the opinions of its
sole sender, and that it does not imply any endorsement by MHC sa/nv

--------------MZBCqtP0EtXYULOkjjYZwqW6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello Fabio.<br>
    Just my two cents: shouldn't you explicitely specify the absolute
    path of ruby.exe and of my_script.rb ?<br>
    <br>
    <div class="moz-cite-prefix">Le 22/02/22 à 15:08, Fabio VITALE a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:MDAEMON-F202202220809.AA0907430md5003000001195@mail.mdaemon.com">I
      have a Ruby script that runs just fine when launched from the
      windows command prompt but does not seems to be launched when
      invoked from a CF Rule: I can see that the rule is fired but it
      seems that the Ruby script is not launched (I do not know how to
      check while the script is executed).
      <br>
      <br>
      From the command prompt I launch it as follow:
      <br>
      <br>
      ruby my_script.rb --parameter_1=1 --parameter_2=2 --parameter_3=3
      <br>
      <br>
      The MDaemon help is very sparse on how to setup a Run a program...
      action.
      <br>
      <br>
      I have no idea on what is going on.
      <br>
      <br>
      Can someone please help me?
      <br>
      <br>
      <br>
--MD-SUPPORT--------------------------------------------------------------
      <br>
      This list is for questions and discussion about MDAEMON. To
      unsubscribe from this mailing list send an email to
      <a class="moz-txt-link-abbreviated" href="mailto:md-support-unsubscribe@mdaemon.com">md-support-unsubscribe@mdaemon.com</a> .
      <br>
      --POWERED BY
      MDAEMON!-----------------------------------------------------
      <br>
      <br>
--------------------------------------------------------------------------
      <br>
      These forums are provided by MDaemon Technologies for user-to-user
      support and discussion.  MDaemon staff members may participate in
      the forums periodically but please recognize that this is not the
      official
      <br>
      method of receiving technical support. To receive personal
      technical support please use the form here:
      <br>
      <a class="moz-txt-link-freetext" href="http://www.mdaemon.com/Support/RequestSupport/">http://www.mdaemon.com/Support/RequestSupport/</a>
      <br>
--------------------------------------------------------------------------
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <pre>-------------------------------------------------
*** THIS MAILBOX IS READ **once** PER DAY ***
-------------------------------------------------
Pierre Piraux, from <b>MHC sa/nv</b> - <a href="https://be.linkedin.com/pub/pierre-piraux/4/284/308"><img style="vertical-align:middle" src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" alt="View Pierre Piraux's profile on LinkedIn" width="160" height="25" border="0"></a>
email: <a class="moz-txt-link-abbreviated" href="mailto:ppiraux@mhc.be">ppiraux@mhc.be</a>
Snail
Mail : MHC sa - 110 Avenue Pastur - 6001 CHARLEROI - BELGIUM
Web : <a href="http://www.mhc.be" target="_new">www.mhc.be</a>
Phone: +32 71 36 60 62
Fax : +32 71 36 63 04
[ Never say "oops" in the operating room. ]

Legal disclaimer: as part of an active strategy of litigation and claim
prevention, please note that this message reflects the opinions of its
sole sender, and that it does not imply any endorsement by MHC sa/nv
</pre>
    </div>
  </body>
</html>

--------------MZBCqtP0EtXYULOkjjYZwqW6--

--------------ms060207080500050606010806
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: Signature cryptographique S/MIME

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DBMwggX7MIIE46ADAgECAhEA2SFCI4afaFp/Lm1dh2cxyjANBgkqhkiG9w0BAQsFADCBljEL
MAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2Fs
Zm9yZDEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMT4wPAYDVQQDEzVTZWN0aWdvIFJTQSBD
bGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTAeFw0yMDAyMDMwMDAw
MDBaFw0yMzAyMDIyMzU5NTlaMIIBDjELMAkGA1UEBhMCQkUxDTALBgNVBBETBDYwMDExEDAO
BgNVBAgTB0hBSU5BVVQxEzARBgNVBAcTCk1BUkNJTkVMTEUxHjAcBgNVBAkTFUF2ZW51ZSBQ
YXN0dXIgMTEwLzExMjEZMBcGA1UEChMQTUhDT05TVUxUQU5UUyBzYTE2MDQGA1UECxMtSXNz
dWVkIHRocm91Z2ggTUhDT05TVUxUQU5UUyBzYSBFLVBLSSBNYW5hZ2VyMR8wHQYDVQQLExZD
b3Jwb3JhdGUgU2VjdXJlIEVtYWlsMRYwFAYDVQQDEw1QaWVycmUgUElSQVVYMR0wGwYJKoZI
hvcNAQkBFg5wcGlyYXV4QG1oYy5iZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AOYnc7ZDr9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UgRW1haWwgQ0ECEQDZIUIjhp9oWn8ubV2HZzHKMIG/BgsqhkiG9w0BCRACCzGBr6CB
rDCBljELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE
BxMHU2FsZm9yZDEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMT4wPAYDVQQDEzVTZWN0aWdv
IFJTQSBDbGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQQIRANkhQiOG
n2hafy5tXYdnMcowDQYJKoZIhvcNAQEBBQAEggEAhTGFh8hYSUmtn3V2nmvnMTqxR0jnYERh
bt/q6GuXvsrlny3c66ElKBxWA1k/59at5rJuuDpuilkDamBPro2NpBziKitIwZUDkSFdG9zK
mN6Ntn1/iYY+/6Xrey7MRSAPpW3rl3n8P2LaFU55JzW98Py2xgdIHPTbZ/epMqx1/7ghBHsh
ydnlxU9dhcAgmkp9B47RHj/zlyy4787Et/ZUdi3YwHNLOz07upYZHEQnuZlK0izT0Wu5IZLP
L+PCQ9GO7HY9MNzKK7rwxqPUjMjnP+ZnbeeIiaWyPT62D7Ql4GfDh8ltf1tO8RBov+533jwt
vK76/l9xBerlxik3majVJAAAAAAAAA==
--------------ms060207080500050606010806--






  (newer msg:2)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.