home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3664 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!swrinde!gatech!news.ans.net!cmcl2!adm!news
  2. From: TGJ@ukhouo.prime.com (Terry Jeffery International Product Support Group)
  3. Newsgroups: comp.unix.wizards
  4. Subject: outputting to /dev/console
  5. Message-ID: <32148@adm.brl.mil>
  6. Date: 21 Aug 92 15:11:00 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 34
  9.  
  10. I tried unix-info last week with this question. I received one reply
  11. that gave me a work-around of the 'logger' function. Can anyone actually
  12. explain why this is happening?
  13.  
  14. I have a (Bourne) script that outputs a line of info to /dev/console. I
  15. changed the program to rsh to my machine and put the message on my
  16. console window. I got the message to come out OK but now the program just
  17. craps out once the message is issued. Both machines are Sun3's running 4.0.3
  18.  
  19. The console message was issued using 'echo'. The only change to the
  20. program was to declare $PROCNUM and wrap the echo line with a csh and a few
  21. quote changes to that line ie from:-
  22.  
  23.       echo "^G$IAM:started $$" > /dev/console
  24.  
  25.       to:-
  26.  
  27.         PROCNUM=$$
  28.         rsh mymachine "echo '^G$IAM:started $PROCNUM' > /dev/console"
  29.  
  30. Can anyone explain what is happening and point me to a better method of issuing
  31. the console message on another machine?
  32.  
  33. TIA
  34.  
  35.  
  36. ============================================================================
  37. Terry Jeffery International Product Support Group   Telephone +44 256 301230
  38. Computervision (UK) Ltd Basingstoke                 Fax       +44 256 301215
  39. Internet : tgj@ukhouo.prime.com
  40. X.400    :  /C=GB/A=TMailUK/P=Prime/O=Prime Computer Ltd/S=Jeffery/G=Terry
  41.  
  42.   I play all the right notes - not necessarily in the right order
  43. ============================================================================
  44.