Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Closing Operator Log in BATCH
@ 1993-01-07 10:31 cfstmpab
  1993-01-07 16:21 ` Steve McKinty - Sun ICNC
  1993-01-08 14:00 ` Dan Wing
  0 siblings, 2 replies; 3+ messages in thread
From: cfstmpab @ 1993-01-07 10:31 UTC (permalink / raw)



   Please could you tell me if there is a way of closing the operator log
file without resorting to a $reply/log command or using any $reply commands.
The problem is that the $reply commands don't work in batch and I need to 
close the operator log in batch mode.

  Andrew Buckle (LOGICA International, UK)
  ----------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Closing Operator Log in BATCH
  1993-01-07 10:31 Closing Operator Log in BATCH cfstmpab
@ 1993-01-07 16:21 ` Steve McKinty - Sun ICNC
  1993-01-08 14:00 ` Dan Wing
  1 sibling, 0 replies; 3+ messages in thread
From: Steve McKinty - Sun ICNC @ 1993-01-07 16:21 UTC (permalink / raw)


In article <1993Jan7.103120.35@condor>, cfstmpab@logica.co.uk writes:
> 
>    Please could you tell me if there is a way of closing the operator log
> file without resorting to a $reply/log command or using any $reply commands.
> The problem is that the $reply commands don't work in batch and I need to 
> close the operator log in batch mode.

The reason $reply commands don't work in batch is that they assume
SYS$COMMAND is a terminal, which for a batch job isn't true.

You could try adding a
$define/user sys$command opa0:

before the reply, or write a quick program which uses the $sndopr
system service (or its replacement, I can't remember if there is an
updated call). Its pretty simple to use.

Steve


-- 
Steve McKinty
SUN Microsystems ICNC
38240 Meylan, France
email: smckinty@france.sun.com	   BIX: smckinty


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Closing Operator Log in BATCH
  1993-01-07 10:31 Closing Operator Log in BATCH cfstmpab
  1993-01-07 16:21 ` Steve McKinty - Sun ICNC
@ 1993-01-08 14:00 ` Dan Wing
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Wing @ 1993-01-08 14:00 UTC (permalink / raw)


In article <1993Jan7.103120.35@condor>, cfstmpab@logica.co.uk writes:

>    Please could you tell me if there is a way of closing the operator log
> file without resorting to a $reply/log command or using any $reply commands.
> The problem is that the $reply commands don't work in batch and I need to 
> close the operator log in batch mode.

Actually, REPLY doesn't work if SYS$COMMAND isn't a terminal.  So if OPA0:
is enabled as an operator terminal, you can:

  $ DEFINE/USER_MODE SYS$COMMAND OPA0:
  $ REPLY/LOG

Within your batch program.  Add whatever sortof classes you want to enable 
for the operator log.  I hacked the code out of 
SYS$STARTUP:VMS$BASEENVIRON-050_VMS.COM so it would honor the OPC$ logicals.

-Dan Wing, dwing@uh01.colorado.edu or wing_d@ucolmcc.bitnet (DGW11)
 Systems Administrator, University Hospital, Denver


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1993-01-08 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-01-07 10:31 Closing Operator Log in BATCH cfstmpab
1993-01-07 16:21 ` Steve McKinty - Sun ICNC
1993-01-08 14:00 ` Dan Wing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox