[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

625.0. "Multi line TEXT to mail action routine" by 41318::BATEMAN (We are all DECservers) Thu Feb 23 1995 13:43

    Is it possible to have multi line TEXT sent to a mail action routine?
    We currently have an event defined with a context start of 1 but with a
    length of 4. The mails received only contain 1 line of TEXT whereas we
    want all 4 lines.
    
    Alan
T.RTitleUserPersonal
Name
DateLines
625.141318::BATEMANWe are all DECserversThu Feb 23 1995 13:441
    Sorry forgot to mention this is on OSF/1 with PCM V1.5.
625.242708::ELLISMAre you all sitting too comfybold square on your botty? - Then wThu Feb 23 1995 14:165
    Yes, it's possible to do it, but you'll have to write your own action
    routine, and use the API.
    
    Martin
    
625.3To expound slightly further on Martin's reply.OPG::SIMONFri Feb 24 1995 08:5314
Hi,
   an action routine which uses the shell interface can only recieve what we 
term the "Text" attribute, this is the line of text on which the event match
occured. The full context i.e the "Count" number of lines is not available to
this sort of action routine.

For this you would need to write an action which uses the C programming API.
In this case the entire contect can be extracted from the log into an array
and your action would deal with it accordingly.

I guess it comes down to the trade off between richness of function with the C
based actions against simplicity of writing Shell.

Cheers Simon...
625.4thanksSIOG::BATEMANWe are all DECserversTue Feb 28 1995 18:216
    Simon,Martin,
    
    Thanks for the replies. I will investigate the API and size this work
    for the Bank.
    
    Alan.