Shell Script Params as eMail attachement

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Shell Script Params as eMail attachement

Post by JuergenF »

Dear all,

I have several Shell Script Test with this in the Params-Field
\\wersv058\e$\projects\logchecker_dif.log

or

\\wersv026\e$\projects\logchecker_dif.log

I have an eMail Alert Action and want to send the File (\\wersv058\e$\projects\logchecker_dif.log) as an attachement.

Which macro-variable can I use ?

Many thanks

Juergen
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may specify the name of the file (\\wersv058\e$\projects\logchecker_dif.log) into "Comment field" in "Test Properties" window for the each test. After that you may use %CommentLine1% variable as a parameter for the "Shell Script" test method ("Params" inout box) and in "Attach file" box in "Action Properties" window for the "Send email" action. If each test is located in a separate folder, you may use folder comment field and "%FCommentLine1%" variable in the same way.


Regards,
Max
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

Hi Max,

Great answer - as always !!!

Many thanks

Juergen
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

JuergenF wrote:Great answer - as always !!!
Many thanks
You are welcome! :-)

Regards,
Max
Post Reply