I can get /dev/console to work but not /dev/operlog.
Either get permission denied to /dev/operlog when not in su mode:
 /dev/operlog CL(FSOBJ   ) FID(00000000000000000000000300000009)   
 INSUFFICIENT AUTHORITY TO OPEN                                    
 ACCESS INTENT(-W-)  ACCESS ALLOWED(OTHER      ---)                
 EFFECTIVE UID(0420050912)  EFFECTIVE GID(0420000000)               

Or invalid argument when in su mode:

echo: FSUM7362 writing: EDC5121I Invalid argument.                              
# echo 'write to  dev operlog'>/dev/operlog                                     
echo: FSUM7362 writing: EDC5121I Invalid argument.                              
# exit                                                                          
$ echo 'write to  dev operlog'>/dev/operlog                                     
FSUM7343 cannot open "/dev/operlog" for output: EDC5111I Permission denied.     
$                                                                               

What is the syntax to write to /dev/operlog ?
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Wednesday, November 05, 2014 9:28 AM
To: [email protected]
Subject: Re: Exposing USS Messages to z/OS SYSLOG

On Wed, 5 Nov 2014 07:02:25 -0700, Lizette Koehler wrote:

>Will that work for the WebSphere/MQ task that is writing to STDOUT?  Can you 
>tell the STC to redirect to SYSLOG this way?
> 
exec 2>/dev/console
(or dup2( open( "/dev/console" ), 2 ); ) You could probably do it, but would 
you want to?

Some sites configure console automation to deflect BPXF024I.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to