home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / dec / 6732 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.4 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!cs.utexas.edu!natinst.com!news.dell.com!texsun!cronkite.Central.Sun.COM!news2me.EBay.Sun.COM!west.West.Sun.COM!male.EBay.Sun.COM!grapevine.EBay.Sun.COM!sunicnc.France.Sun.COM!smckinty
  2. From: smckinty@sunicnc.France.Sun.COM (Steve McKinty - Sun ICNC)
  3. Newsgroups: comp.sys.dec
  4. Subject: Re: Closing Operator Log in BATCH
  5. Message-ID: <1ihlauINN1sd@grapevine.EBay.Sun.COM>
  6. Date: 7 Jan 93 16:21:50 GMT
  7. References: <1993Jan7.103120.35@condor>
  8. Sender: smckinty@France.Sun.COM (Steve McKinty - Sun ICNC)
  9. Organization: SunConnect
  10. Lines: 25
  11. NNTP-Posting-Host: hardy.france.sun.com
  12.  
  13. In article <1993Jan7.103120.35@condor>, cfstmpab@logica.co.uk writes:
  14. >    Please could you tell me if there is a way of closing the operator log
  15. > file without resorting to a $reply/log command or using any $reply commands.
  16. > The problem is that the $reply commands don't work in batch and I need to 
  17. > close the operator log in batch mode.
  18.  
  19. The reason $reply commands don't work in batch is that they assume
  20. SYS$COMMAND is a terminal, which for a batch job isn't true.
  21.  
  22. You could try adding a
  23. $define/user sys$command opa0:
  24.  
  25. before the reply, or write a quick program which uses the $sndopr
  26. system service (or its replacement, I can't remember if there is an
  27. updated call). Its pretty simple to use.
  28.  
  29. Steve
  30.  
  31.  
  32. -- 
  33. Steve McKinty
  34. SUN Microsystems ICNC
  35. 38240 Meylan, France
  36. email: smckinty@france.sun.com       BIX: smckinty
  37.