450 | | '''watch-output''' - monitor the output and send notifications about the progress. The directive allows to monitor the output of the application and to send notifications in the requested form. The argument of the directive is the triple of parameters separated by commas: |
451 | | * address which the notification will be sent to (supported protocols are mail and xmpp/jabber - see the '''notify''' directives for details) |
452 | | * number of seconds between next notifications |
453 | | * regular expression or path to the file to generate the content of notification. |
454 | | |
455 | | {{{ |
456 | | #QCG watch-output=mailto:piontek@man.poznan.pl,20,ENERGY |
457 | | }}} |
458 | | {{{ |
459 | | #QCG stage-in-file=nft_expr_file |
460 | | #QCG watch-output=mailto:piontek@man.poznan.pl,30,ntf_expr_file |
461 | | }}} |
462 | | |
| 450 | |
| 451 | * '''watch-output''' - dirrective allowing to monitor the application output and sending notification messages. |
| 452 | |
| 453 | '''IMPORTANT:''' - starting frome the QCG 3.4 version the syntax of the directive has changed. |
| 454 | |
| 455 | Syntax: |
| 456 | {{{ |
| 457 | #QCG watch-output=consumer->consumer_url,[pattern->pattern_value | script->script_name ,delay->N] |
| 458 | #QCG watch-output=consumer_url |
| 459 | }}} |
| 460 | |
| 461 | Parameters: |
| 462 | * ''consumer'' - mandatory, default parameter specifying the notification consummer. (supported protocols are: mail i xmpp - see: notify directive) |
| 463 | * ''pattern'' or ''script'' - parameter specifying either the pattern (regular expression) or the whole monitoring script. In both cases the output is sent to the consumer. In the case of the script it has to be transfered using the #QCG stage-in-file directive. |
| 464 | * ''delay'' - time in seconds between next invocations of the monitoring procedure. The message is sent only when the output has changed from the previous interation. |
| 465 | |
| 466 | {{{ |
| 467 | #QCG watch-output=mailto:piontek@man.poznan.pl,pattern->ENERGY,dalay->60 |
| 468 | |
| 469 | #QCG watch-output=consumer->mailto:piontek@man.poznan.pl,script->skrypt_monitorujacy.sh,dalay->60 |
| 470 | #QCG stage-in-file=skrypt_monitorujacy.sh |
| 471 | }}} |