[comp.sys.sun] Sun-Spots Digest, v6n71

Sun-Spots-Request@RICE.EDU (William LeFebvre) (05/04/88)

SUN-SPOTS DIGEST           Tuesday, 3 May 1988         Volume 6 : Issue 71

Today's Topics:
               Re: Sun & VAX/VMS Decnet mail communication
            Re: Menu items with varying heights under SunTools
                   Re: Problem connecting a Hayes Modem
                        Re: My favorite shell file
                         Re: Bill Joy's dashboard
                           Sun Education Update
                    CC loops on multiply by 0x8000000
                           `pc' ignores program
                   dnalogind dies in SunLink DNI (5.0)
                   Format for byte encoded rasterfiles?
                    Postscript for Dot-Matix Printers?
                      Hacked version of sendmail.cf?
                    Room and phone numbers for Finger?
                             IGES to Raster?
              Looking for information about terminal servers

Send contributions to:  sun-spots@rice.edu
Send subscription add/delete requests to:  sun-spots-request@rice.edu
Bitnet readers can subscribe directly with the CMS command:
    TELL LISTSERV AT RICE SUBSCRIBE SUNSPOTS My Full Name
Recent backissues are available via anonymous FTP from "titan.rice.edu".
For volume X, issue Y, "get sun-spots/vXnY".  They are also accessible
through the archive server:  mail the request "send sun-spots vXnY" to
"archive-server@rice.edu" or mail the word "help" to the same address
for more information.

----------------------------------------------------------------------

Date:    Sat, 23 Apr 88 15:53:24 EDT
From:    shenkin@cubsun.bio.columbia.edu (Peter Shenkin)
Subject: Re: Sun & VAX/VMS Decnet mail communication

In case this is helpful, we have both Suns and VAX/VMS machines, and we
have Sun's Decnet support ("Sunlink DNI").  The first release is better
than nothing, but is a crummy package.  It doesn't support mail
communication to/from VMS, and it doesn't support Decserver access.  All
it supports is remote login and file copying, and at least the former is
very buggy;  for example, when the Sun is the host and one is
remote-logged-in to the VMS machine, VMS history substitution editing does
not work.

We've looked into ways for these machines to communicate, but it doesn't
appear that there's anything better at the moment.  (For mail, of course,
if both machines know how to talk to BITNET....)

Peter S. Shenkin,    Department of Biological Sciences,    Columbia University,
New York, NY   10027         Tel: (212) 280-5517 (work);  (212) 829-5363 (home)
shenkin@cubsun.bio.columbia.edu    shenkin%cubsun.bio.columbia.edu@cuvma.BITNET

------------------------------

Date:    Mon, 25 Apr 88 10:36:54 EDT
From:    Chuck Musciano <chuck@trantor.harris-atd.com>
Subject: Re: Menu items with varying heights under SunTools

Well, it seems that I was wrong.  You cannot create a menu with items that
are of differing heights.  The window system creates a menu whose items
are all the height of the largest item.  Sorry for the misinformation.
This would be a nice (and orthogonal) feature in the menu library.  How
about it, Sun?

Sigh...

Chuck Musciano
Advanced Technology Department
Harris Corporation
(407) 727-6131
ARPA: chuck@trantor.harris-atd.com

------------------------------

Date:    Mon, 25 Apr 88 13:53:50 EDT
From:    darkstar!brian%hall.CRAY.COM@uc.msc.umn.edu (Brian Utterback)
Subject: Re: Problem connecting a Hayes Modem

I know what your problem is, but unfortunately, as far as fixing it, you
may be in trouble.  The problem is one of two things.  The first is that
you do not have the modem configured for short numeric responses.  Since
the debug info has "OK" in it, it is clear that you are not sending the
numeric codes.  However, that may be just the begining of the problem.  

The second potential problem is too much hard-coded trash.  Specifically,
your modem will send CR,LF,"0",CR,LF (i.e. 5 characters) when tip and
uucico expect "0",CR (2 characters) .   Most Hayes compatible modems just
send the return code and a CR, but some send CRLF code CRLF.  This makes
everything print pretty on the terminal.  But it breaks tip and uucico.
In fact, tip and uucico scan for the CR and assume that it represents the
end of line, so they thenm throw out everything else as trash.  The only
way to fix it is to change the source and recompile.  There may be a
workaround, but you would not be able to use hayes mode with tip and
uucico.  

These things should be in some kind of configuration file.  Why aren't they?

Brian Utterback     |UUCP:{ihnp4!cray,sun!tundra}!hall!blu
Cray Research Inc.  |ARPA:blu%hall.cray.com@uc.msc.umn.edu
One Tara Blvd. #301 |
Nashua NH. 03062    |Tele:(603) 888-3083

------------------------------

Date:    Mon, 25 Apr 88 12:29:07 EDT
From:    Root Boy Jim <rbj@icst-cmr.arpa>
Subject: Re: My favorite shell file

   ____________________
   #!/bin/csh -f
   set h = `/usr/bin/basename $0`
   shelltool -Wl " rlogin $h" -WL "$h" rlogin $h $* -8 &
   ____________________

   Works great!  And you can even give "-l" arguments to it.  But you have to
   be running suntools to use it!

Looks great, too. I have a question or two with associated nits to pick:

1) Is the csh required for this? It doesn't seem to use any csh features,
   but perhaps it is necessary to get job control/signals/process groups
   right. Otherwise, you might want to use /bin/sh. Can you elaborate on this?

[[ Habit.  Whenever I start a shell script I always type "#!/bin/csh -f"
as the first line.  --wnl ]]

2) If you *are* going to use csh, use its features! Get rid of the
   basename call (set h=$0), and replace `$h' with `$h:t' in the last line.
   Note that colon suffixes do not work on $0, $1, ... arguments.

[[ Absolutely correct.  Those who use this script might want to make the
mentioned changes.  --wnl ]]

3) Perhaps you might want to use the `hello world' icon instead?

	(Root Boy) Jim Cottrell	<rbj@icst-cmr.arpa>
	National Bureau of Standards
	Flamer's Hotline: (301) 975-5688

------------------------------

Date:    Fri, 22 Apr 88 21:36:40 EST
From:    umix!lokkur!scs@rutgers.edu (Steve Simmons)
Subject: Re: Bill Joy's dashboard

eos!jaw@ames.arc.nasa.gov (James A. Woods) writes:
>Subject: Re: Changes in user mail interface
>another theory is that since bill joy often types e-mail without use of
>the shift key, the 'r' default makes sense.

Our moderator interjects...

>[[ Uh, huh.  And his car's dashboard has no gauges and only one idiot
>light:  a question mark....  --wnl ]]

Tch tch.  Everybody knows it's a '%'.

Steve Simmons, Inland Sea Software, Ltd.                 scs@lokkur.uucp
9353 Hidden Lake, Dexter, MI. 48130		            313-426-8981
UNIX Admin and Training Services     "Just eight scenic miles from Hell"

------------------------------

Date:    Mon, 25 Apr 88 07:17:23 PDT
From:    susan@sun.com (Susan Morin)
Subject: Sun Education Update

The Sun Educational Services brochure and July through December 1988
schedule will be mailed out over the next couple of weeks. If you have not
received your copy by May 20, please call one of these numbers so we can
mail you another one.

	within CA		800 423-8020
	elsewhere in U.S.	800-422-8020

If you would like to receive an online copy, send your request to
sun\!customer-training, or customer-training@sun.com.

NEW COURSES

There are several new courses listed in the brochure. 

* "Network Application Development Using RPC" is for programmers who use
  Sun's Remote Prcedure Call (RPC) protocol to write distributed
  applications.

* "SunLink DNI" is for network administrators who install, configure,
  and maintain a network of Sun and DECnet workstations.

* "Network Software Environment (NSE)" is for project managers and 
  programmers who install, configure and use Sun's newest Computer-
  Aided Software Engineering (CASE) product to solve large-scale
  programming issues.

* "System Administration 4.0" is for new system administrators who
  support workstations running SunOS 4.0.

MORE INFORMATION

If you would like information about these courses, or have questions about
Sun Education, please call one of the 800 numbers listed above or send
your question to sun!customer-training.

Regards,
Susan Morin
Course Development Manager
Educational Services

------------------------------

Date:    Sun, 24 Apr 88 02:32:20 +0200
From:    mcvax!iesd!fischer@uunet.uu.net (Lars P. Fischer)
Subject: CC loops on multiply by 0x8000000

The following program triggers a bug in `cc':

main()
{
    int i;

    i = 4; 
    i = i * (0x80000000);
}

The assembly generated is:

LL0:
	.data
	.text
|#PROC# 04
	.globl	_main
_main:
|#PROLOGUE# 0
	link	a6,#0
	addl	#-LF12,sp
	moveml	#LS12,sp@
|#PROLOGUE# 1
	movl	#0x4,a6@(-0x4)
	movl	a6@(-0x4),d0
	negl	d0
	movl	#31,d1
	asll	d1,d0
	movl	d0,d1
	lsrl	#1,d1
	negl	d0
	addl	d1,d0
	subl	d1,d0
	lsrl	#1,d1
	addl	d1,d0
	subl	d1,d0
	lsrl	#1,d1
	addl	d1,d0
	subl	d1,d0
	lsrl	#1,d1
	addl	d1,d0
        ....

This gets a bit booring after a while. It also fills up the root file
system. Yes, I know the code is silly. Students learning C tends to write
things like that :-).

This is on Sun 3/X's, SunOS 3.[4-5].
I have CC'd to sunbugs.

------------------------------

Date:    Sun, 24 Apr 88 02:15:08 +0200
From:    mcvax!iesd!fischer@uunet.uu.net (Lars P. Fischer)
Subject: `pc' ignores program

The following demonstrates what I consider a bug in `pc'.

     Script started on Thu Apr 14 15:52:02 1988
     iesd% ls
     test1.p		test2.p		typescript
     iesd% cat test1.p
     program test (input, output);

     begin
	 writeln ('Hello, World');
     end.

     There is an error in pc.

*    iesd% pc test1.p
*    iesd% ls
*    test1.p		test2.p		typescript
     iesd% cat test2.p
     program test (input, output);

     begin
	 writeln ('Hello, World');
     end.

     {There is an error in pc.}

     iesd% pc test2.p
     iesd% ls
     a.out*		test1.p		test2.p		typescript
     iesd% a.out
     Hello, World
     iesd% 
     script done on Thu Apr 14 15:52:58 1988

On the lines marked with *, note that pc did not generate a binary,
neither did it generate an error message. If I put a quote in the text
after "end.", I get an "Unmatched ' ..."  error. This shows that the text
is parsed.

Now, I don't care if some random text after the end of a program is
considered an error or is simply ignored. But the current behaviour is
*not* OK. (Consider when this happens in one file out of many, compiled
and linked by Make. You have a bug, so you change the program. No use. You
put in some print statements. Nothing is printed.  Very funny :-).

This is on Sun 3/X's running SunOS 3.4 and 3.5.  On a Vax, running Ultrix
V2.2, pc compiles without bothering about text after "end."

I have CC'd to sunbugs.

------------------------------

Date:    Mon, 25 Apr 88 08:29:52 EDT
From:    gfr%wolfgang@gateway.mitre.org (Glenn Roberts)
Subject: dnalogind dies in SunLink DNI (5.0)

(ref: v6n59 - Steve Blair)

> In the 5.0 version of Sunlink/DNI there appears to be a weird almost
> poltergeistic bug there:
>
> using dnalogin outside of a 'te100tool' causes the
> '/usr/sunlink/dna/dnalogind' to terminate.  This to my recolection does
> not appear in DNA4.0, so's here an easy fix one of my users came up with:

An important change between DNA4.0 and DNI5.0 is that in 5.0 the dnalogind
process is initiated by dnaserver.  This means that in your /etc/rc file
you should start up dnaserver:

   /usr/sunlink/dnaserver & 		>/dev/console

(In 4.0 you would have started dnalogind there.  If you do this under 5.0,
dnalogind dies after the first session is terminated.)

You also have to put in the dna account in your /etc/passwd file.  As the
DNI System Administrator Guide says (sect 4.3) "If the system
administrator chooses not to define the default dna account, remote login
to the Sun node will be possible only if the system administrator starts
dnalogind manually each time someone wants to log in."

Glenn Roberts
The MITRE Corporation
McLean VA
gfr%wolfgang@gateway.mitre.org

------------------------------

Date:    24 Apr 88 15:47:53 GMT
From:    sow@cad.luth.se (Sven-Ove Westberg)
Subject: Format for byte encoded rasterfiles?

Did anyone know the format of Suns runlength encoding in the Run
rasterfiles. I also appreciate a RTFM if you enclose the manual name and
page number. The only information I have found is this short comment in
the "rasterfile.h".

#define RT_BYTE_ENCODED	2	/* Run-length compression of bytes */

Please note, I am asking for the format not how to read a rasterfile with
the sunlibraries.

All hints is very much appreciated.

Sven-Ove Westberg, CAD, University of Lulea, S-951 87 Lulea, Sweden.
UUCP:    {uunet,mcvax}!enea!cad.luth.se!sow
ARPA:    sow%cad.luth.se@ucbvax.berkeley.edu
Internet: sow@cad.luth.se

[[ JDEBE@MTUS5.BITNET (John de Beaubien) wants to know the same thing.
His request came in at about the same time.  --wnl ]]

------------------------------

Date:    Mon, 25 Apr 88 07:59:47 cdt
From:    ssmith%uxe.cso.uiuc.edu@uxc.cso.uiuc.edu (Steve Smith )
Subject: Postscript for Dot-Matix Printers?

Does anyone know of a postscript driver that will format output to a dot
matirx printer?  We have a Toshiba P351 that is almost useless to us ever
since we hooked a LaserWriter to the system.  However 95% of what is
printed never leave our lab, so hi resolution is not always needed. Any
Ideas?

Thanks,
Steven Smith
U of Illinois Microbiology
ssmith@uxe.cso.uiuc.edu
smith@scotty.life.uiuc.edu

------------------------------

Date:    Mon, 25 Apr 88 14:01:43 EDT
From:    tony@apollo.drexel.edu (Tony Spica)
Subject: Hacked version of sendmail.cf?

Do you have or know where I can get a version(for a sun) of sendmail.cf
with the following hack:

        support for multi-domain names (e.g. rice.edu or verona.rice.edu)

I talked to sun and they said that you might have the hack.      

thanks,
tony@apollo.drexel.edu

[[ I'm not the sendmail hacker around here, so I'll put it to the entire
readership.  --wnl ]]

------------------------------

Date:    Mon, 25 Apr 88 17:04:23 EDT
From:    formtek!pen@idis.UUCP (Philip E. Nickerson, Jr.)
Subject: Room and phone numbers for Finger?

Finger documents that it can handle location and phone numbers for
machines people are logged in on.  How do we define the location and phone
number database for finger???

Philip E. Nickerson,Jr.   |UUCP   {pitt,psuvax1}!idis!formtek!pen
(412)937-4900|(800)FORMTEK|       decvax!formtek!pen

Snail  Formative Technologies, Inc., Foster Plaza VII
       661 Andersen Dr., Pittsburgh PA  15220

------------------------------

Date:    Mon, 25 Apr 88 17:08:11 EDT
From:    formtek!pen@idis.UUCP (Philip E. Nickerson, Jr.)
Subject: IGES to Raster?

Has anyone seen an IGES to Raster converter???  If so, please email me.
Either Public Domain or Third Party Vendor sources are OK.  (The raster
format need not be SUN rasterfile format, but it would be helpful.)

						-Phil

Philip E. Nickerson,Jr.   |UUCP   {pitt,psuvax1}!idis!formtek!pen
(412)937-4900|(800)FORMTEK|       decvax!formtek!pen

Snail  Formative Technologies, Inc., Foster Plaza VII
       661 Andersen Dr., Pittsburgh PA  15220

------------------------------

Date:    20 Apr 88 21:16:09 GMT
From:    rochester!tropix!scmhcx!tropix!mjs@rutgers.edu (Michael J Shon)
Subject: Looking for information about terminal servers

I am looking for information concerning ethernet terminal servers or any
similar equipment.  Any help will be greatly appreciated.  If I missed a
recent posting about this sort of thing, please tell me who to contact for
the information.

We would like to be able to connect a number of terminals to the ethernet
and allow users to log in to our vaxes, suns, etc.  It would also be VERY
handy if we could use them for uucp or SLIP on systems without ethernets.
ANY other suggestions for connecting terminals and computers which
otherwise have no network connection would be appreciated.

Assuming that it is possible to run uucp through one of these to an
arbitrary system on the net, does (or would) its performance drop
miserably for normal terminal sessions? How many uucp sessions do you
think it could handle? 

Thanks in advance for any comments.  If I get lots of info (and anyone
else cares) I will summarize to the net.

Mike Shon
{rochester, ihnp4, allegra}!tropix!mjs

------------------------------

End of SUN-Spots Digest
***********************