HP3000-L Archives

September 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Campbell Fethers <[log in to unmask]>
Reply To:
Campbell Fethers <[log in to unmask]>
Date:
Wed, 22 Sep 1999 10:02:44 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Ron Horner asked for examples of using Syslog/iX

The following MPE style command file logs an event. It is useful within
jobs.

parm msg=""
comment Send log message to Syslog/iX
if "!msg" = ""
  echo Usage SYSLOG ;msg="string.."
else
  build L ;rec=-250,,f,ascii ;disc=1 ;nocctl ;temp
  file L=L,oldtemp
  echo !msg >> *L
  run /SYSLOG/PUB/logger ;stdin=*L
  reset L
  purge L,temp
endif


See /SYSLOG/PUB/logger.1 for additional parameters for /SYSLOG/PUB/logger.

ATOM RSS1 RSS2