home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!swrinde!gatech!news.ans.net!cmcl2!adm!news
- From: TGJ@ukhouo.prime.com (Terry Jeffery International Product Support Group)
- Newsgroups: comp.unix.wizards
- Subject: outputting to /dev/console
- Message-ID: <32148@adm.brl.mil>
- Date: 21 Aug 92 15:11:00 GMT
- Sender: news@adm.brl.mil
- Lines: 34
-
- I tried unix-info last week with this question. I received one reply
- that gave me a work-around of the 'logger' function. Can anyone actually
- explain why this is happening?
-
- I have a (Bourne) script that outputs a line of info to /dev/console. I
- changed the program to rsh to my machine and put the message on my
- console window. I got the message to come out OK but now the program just
- craps out once the message is issued. Both machines are Sun3's running 4.0.3
-
- The console message was issued using 'echo'. The only change to the
- program was to declare $PROCNUM and wrap the echo line with a csh and a few
- quote changes to that line ie from:-
-
- echo "^G$IAM:started $$" > /dev/console
-
- to:-
-
- PROCNUM=$$
- rsh mymachine "echo '^G$IAM:started $PROCNUM' > /dev/console"
-
- Can anyone explain what is happening and point me to a better method of issuing
- the console message on another machine?
-
- TIA
-
-
- ============================================================================
- Terry Jeffery International Product Support Group Telephone +44 256 301230
- Computervision (UK) Ltd Basingstoke Fax +44 256 301215
- Internet : tgj@ukhouo.prime.com
- X.400 : /C=GB/A=TMailUK/P=Prime/O=Prime Computer Ltd/S=Jeffery/G=Terry
-
- I play all the right notes - not necessarily in the right order
- ============================================================================
-