[Info-vax] Reopen OPERATOR.LOG from batch?

Jan-Erik Söderholm jan-erik.soderholm at telia.com
Thu Sep 5 10:27:56 EDT 2019


Den 2019-09-05 kl. 15:33, skrev bill.hall at navistar.com:
> On Thursday, September 5, 2019 at 7:55:45 AM UTC-5, Jan-Erik Söderholm wrote:
>> Hi.
>>
>> The online HELP for REPLY/LOG says:
>>
>> "The current terminal must be enabled as an operator terminal."
>>
>> And HELP for REPLY/ENABLE says:
>>
>> "The /ENABLE qualifier cannot be entered from a batch job."
>>
>> So then, how to close/reopen OPERATOR.LOG from a batch job?
>>
>> Jan-Erik.
> 
> I rename, close, and archive the OPERATOR.LOG files on our clusters daily from a single batch job that uses SYSMAN to execute a procedure on all of the cluster members.  This code snippet is basically what you need.
> 
> $       define /user SYS$COMMAND OPA0:
> $       reply/enable
> $       define /user SYS$COMMAND OPA0:
> $       reply /log      ! create the new log file
> 

OK, fine!
Adding the DEFINE before each REPLY seems to have solved it.
Not that att 100% understands why, but why bother... :-)

Jan-Erik.





More information about the Info-vax mailing list