Sun-Spots-Request@RICE.EDU (William LeFebvre) (08/08/88)
SUN-SPOTS DIGEST Friday, 5 August 1988 Volume 6 : Issue 169 Today's Topics: Re: pclans RFC (& sun's & appletalk & kinetics) Re: NeWS Question Re: file `which which` mystery solved Re: Suntools startup bug/feature New version of "psraster" Followup on my previous bug report script for checking file system fullness A 'pick-proof' lockscreen Information on 8MM Backup devices on Sun 3/280 Systems Neurocomputing software/hardware for Sun 3's? Format of a ".o" file? 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: 27 Jul 88 03:09:44 GMT From: stpstn!aad@ames.arc.nasa.gov (Anthony A. Datri) Subject: Re: pclans RFC (& sun's & appletalk & kinetics) In article <1179@gazette.bcm.tmc.edu> sob@cortex.neuro.bcm.tmc.edu writes: >on top of Novell and 3+ as well. If you are looking for a TCP/IP-based >solution, only PC/NFS (of the ones you mentioned) will do. TOPS and Novell >are both based on vendor-specific protocols. Novell has available a >TCP/IP gateway that allows ftp and telnet (no SMTP, though). TOPS has >a SUN implementation that allows a SUN to "bridge the gap", but it >not a gateway. Now, I haven't researched it fully yet, but the latest information I've seen on TOPS from Sun claims that it "does" TCP/IP -- telnet, ftp, ... from macintoshes to the sun, at least. Of course, it's possible that what that really means is "co-exists and is bundled with" TCP/IP. After seeing a couple of Novell networks, I'm less than impressed with them. We've got one here that runs over "Gnet", which I've *never* heard of before. The sun propaganda also said, I think, that if you have TOPS running on a Sun, then remote TOPS's can get to files that the Sun has NFS mounted. I may have mis-interpretted this, but if it's true, that's something that NFS itself can't do. I'm getting into this because we've got a dozen or so macintoshes and two laserwriters, and I'm tired of plugging my terminal line into a mac every time someone wants a file transferred, not to mention the two laserwriters on the appletalk I'd love to print to from the suns. It seems obvious to me that the hardware answer is a kinetics box, but there's a lot of software out there. As I remember, the kinetics box comes with tcp/ip to run in the box, and telnet and ftp programs for the macintosh. TOPS (not to be confused with tops-20, sadly) and/or K-talk (?) seem to solve the file-transfer and printing issues, but one thing i haven't seen yet is a product that lets the macintoshes send real mail, ie., rfc822, to the suns (and beyond). Any advice? -- Anthony A. Datri,SysAdmin,StepstoneCorporation,stpstn!aad ------------------------------ Date: Wed, 27 Jul 88 11:02:56 EDT From: bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) Subject: Re: NeWS Question Rerference: v6n148 ssc-vax!dmg@beaver.cs.washington.edu (David Geary) writes: >...If I write a NeWS-based application, can I run the application on >another Sun that does NOT have NeWS loaded on it? Assuming (1) there are no licensing restrictions prohibiting you from doing so, and (2) you also install the shared libraries that contain any components that may live in those shared libraries, and (3) you have the correct CPU type and enough memory on the target host to run the application you've compiled, and (4) there's a working network between the target client host and the machine on which your server is running, (and I've probably forgotten a few other assumptions...), Yes. ------ Bob Sutterfield, Department of Computer and Information Science The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277 bob@cis.ohio-state.edu or ...!{att,pyramid,killer}!cis.ohio-state.edu!bob ------------------------------ Date: 27 Jul 88 10:48:02 GMT From: Ian Phillipps <mcvax!camcon!igp@uunet.uu.net> Subject: Re: file `which which` mystery solved Reference: v6n145 mkhaw@teknowledge-vaxc.arpa (Mike Khaw) says: > My .cshrc file contains conditionally defined aliases for cd, pushd and > popd that write $cwd into the namestripe of shell/cmdtools...and > `which which` returns this "invisible" string together with > "/usr/ucb/which". The following may be of interest. I set the csh prompt to write the name stripe. This allows other aliases - see the one for "vi" - to rewrite the namestripe, and also caters for use of "su" and "rlogin". [This assumes that the su'ed user has a suitable .cshrc. The communal ones I use test real vs. effective uid and call up real user's .cshrc] Note the test of prompt - this is the core of the `which which` problem above. The prompt string is set by the alias PR, which is set according to the terminal in use. The vt320 one writes the path into the status line. # @(#).cshrc 1.9 for igp [Extract only] if ($?prompt) then # only for interactive shells set HOSTNAME=`hostname` set HOST=`expr substr $HOSTNAME 1 3` set prompt="$HOST%\! " if ( $?TERM ) then if ( $TERM =~ *sun* && "`tty`" !~ *console* ) then # Sun console specifics: (note that tty == console only outside windows) alias WH 'echo -n "]l\!:1\]L\!:2\"' # args in window header alias C 'echo -n "[2t"' # close window alias O 'echo -n "[1t"' # open window alias Z 'echo -n "[8;\!:1;\!:2t"' # change window size alias IC "echo -n ']I\!:1\'" # change icon alias PR 'set prompt="]l${HOSTNAME}: $cwd [$user]\]L$cwd:t\${HOST}%\\! "' alias vi '(IC /usr/include/images/textedit.icon;WH "vi \!*" "\!:1";/usr/ucb/vi \!*;IC '$TOOL_ICON')' else alias PR 'set prompt="${HOST}:${cwd} %\\! "' # The monster quote is to allow quotes to survive two lots of stripping # putting the whole prompt in "" doesn't help because "$" is always # quoted. if ($term =~ vt320*) alias PR 'set prompt='"'"'[2$~[1$}[7m[1;20H '"'"'${cwd}'"'"' [K[$}'"'"'${HOST}'"'"' %\\! '"'"'' endif alias cd 'cd \!*;PR' alias pd 'pushd \!*;PR' alias popd 'popd \!*;PR' PR endif endif -- UUCP: ...!ukc!camcon!igp | Cambridge Consultants Ltd | Ian Phillipps or: igp@camcon.uucp | Science Park, Milton Road |----------------- Phone: +44 223 358855 | Cambridge CB4 4DW, England | ------------------------------ Date: 28 Jul 88 00:22:39 GMT From: vern@sequoia.lbl.gov (Vern Paxson) Subject: Re: Suntools startup bug/feature Mark Brown wrote about a fairly baffling problem of starting up Suntools and having it come only partially up, a second shelltool refusing to start until the first had been exited. We have encountered a similar problem where (seemingly sporadically) when invoking Suntools one of the start-up tools will gobble CPU like crazy. As I recall, ps shows it to as not being associated with a pty. After some poking around we found that the problem is related to pty's not being properly exited when a user leaves Suntools with some shells still active. If your users are in the habit of leaving Suntools without first exiting each active shelltool or cmdtool, a subsequent 'w' will often show "ghost" pty's still hanging around. These are the culprits. The quick solution is to do nested "rlogin localhost"'s until you have worked your way through all the ghost pty's, then exit the rlogin's and the pty's will go away, too. Depending on your configuration, an alternative quick solution is rebooting. The better solution is to get your users in the habit of exiting all of their shells before exiting Suntools. [[ It have been pointed out by others that the root of the problem is incorrect permissions on the pty's. I suspect that what you describe is the reason why those pty's got the wrong permissions. --wnl ]] Vern Vern Paxson vern@lbl-csam.arpa Real Time Systems ucbvax!lbl-csam.arpa!vern Lawrence Berkeley Laboratory (415) 486-6411 ------------------------------ Date: Tue, 2 Aug 88 16:36:11 +0300 From: leonid@TAURUS.BITNET Subject: New version of "psraster" Some time ago I poster a rasterfile(5) to PostScript conversion program called psraster. This is the second release of this program. Psraster may be considered a Public Domain replacement for pssun for those who bought TranScript directly from Addobe (and not Sun) On the other hand, Psraster somewhat different from pssun in its options and PostScript format. Here are some features of psraster: - Correct colour to greyscale conversion (for 8-bit deep images). - "Byte-Encoded" PostScript format to reduce communication overhead. - Automated image positioning and scaling. - Complete control over size and origin of the image to be printed. - Number of images on the same page. The program now is mucb more powerful then the previous release, and a few bugs are fixed since then (it works with dumpregion now). It has been tested on Sun-3 and Sun-4 under SunOS 3.X. The program makes an attepmpt to make an output that can ge used by ditroff and/or LaTeX and be included in a document (byu computing and outputing the BoundingBox). I have not got here the capability to include PostScript in a document, so there are probably many fixes in that area. Primarily the format of the comments. Please be so kind to describe the exact format for these comments in the output file, so the next version be useful in that sence too. Leonid [[ The shar file contains uuencoded files for the source. Running the shar file through the Bourne shell will uudecode the files for you automatically, but it also explicitly sets the path. So make sure that either the current directory is writable by uucp or the installed version of uudecode is not setuid (I have a separate copy of uudeocde in my bin directory that has the setuid bit off, but this shar file still didn't work at first). It replaces the old version, stored under "sun-source" as "psraster.shar". It is 26038 bytes long. It can be retrieved via anonymous FTP from the host "titan.rice.edu" or via the archive server. For more information about the archive server, send a mail message containing the word "help" to the address "archive-server@rice.edu". --wnl ]] ------------------------------ Date: Tue, 26 Jul 88 18:17:56 CDT From: root@emx.utexas.edu (Head UNIX Hacquer) Subject: Followup on my previous bug report The problem seems to be with the casting of objects of type float to type 'double' to be passed as a subroutine parameter. Things of 'float' should be converted to type 'double' before being stuffed into the 'o' registers for the subroutine call. -Clyde Hoover ------------------------------ Date: Wed, 27 Jul 88 09:26:14 PDT From: celeste@coherent.com (Celeste C. Stokely) Subject: script for checking file system fullness This script tells me if a filesystem has gotten close to full without my noticing it. (We sysadmin types need to be aware of these sorts of things when the favorite pasttime of our users seems to be dumping core!) I have cron run this script and mail the output to me every night. The way this is set (with "@ high=80") it squawks about filesystems more than 80% full. If your threshhold of pain is lower, set "high" to a lower number. Fill in the name of your filesystems on the "foreach" line. The script: #!/bin/csh -f echo "On `hostname`:" @ high=80 foreach fs (/ /pub /usr1 /big /home /usr/local /usr/news /usr) set df_out=`df $fs | tail -1 ` #get filesystem's df numbers into df_out # #awk's NF is the number of fields on a line # @ percent=`echo $df_out | awk '{print $(NF-1)}' | sed 's/%//'` @ remain=`echo $df_out | awk '{print $(NF-2)}'` if ($percent > $high) then echo "$fs is $percent% full with $remain kbytes remaining" endif end The output: On big_sun: /usr1 is 84% full with 72301 kbytes remaining /usr/local is 88% full with 22682 kbytes remaining /usr is 91% full with 6635 kbytes remaining Hope this helps someone, ..Celeste Stokely (a.k.a. Madame Server) Coherent Thought Inc. UUCP: ...!{ames,sun,uunet}!coherent!celeste Domain: celeste@coherent.com Internet: coherent!celeste@ames.arpa or ...@sun.com or ...@uunet.uu.net VOX: 415-493-8805 SNAIL:3350 W. Bayshore Rd. #205, Palo Alto CA 94303 ------------------------------ Date: Wed, 27 Jul 88 23:39:56 PDT From: Paul O'Neill <pvo@oce.orst.edu> Subject: A 'pick-proof' lockscreen >There is a security hole in "lockscreen", thus: >If the control sequence for open window, "^[[1t", is sent to a shelltool >or cmdtool window which is behind a lockscreen, it pops to the front and ... Lockscreen runs 2 processes. "Lockscreen" clears the screen, does the password verification and spawns "lockscreen_default" (usually the LIFE program) for pretty pictures. The security hole is in lockscreen_default, not lockscreen. If lockscreen_default can't be found in your path then lockscreen does a bouncing sun logo that repaints the entire screen every second; "^[[1t" will pop open a shelltool or commandtool, but it's only accessible for less than a second. Either get rid of lockscreen_default or explicitly tell lockscreen not to run a pretty-picture program by typing the command: lockscreen "". It can't be picked by this technique. Put lockscreen "" in your .rootmenu also. Paul O'Neill pvo@oce.orst.edu Coastal Imaging Lab OSU/Oceanography Corvallis, OR 97331 503-754-3251 ------------------------------ Date: Wed, 27 Jul 88 10:56:30 edt From: panda!jrb@talcott.harvard.edu (John R. Burke) Subject: Information on 8MM Backup devices on Sun 3/280 Systems I am looking for information from anybody that has used or seen an 8mm backup device on Sun 3/280 systems. We are looking to put one on our engineering file server. Any responses would be appreciated. I saw a reference to 8MM devices available from Sun 3 weeks ago, but when I called my Sun sales person, he denied any knowledge of such a device. ------------------------------ Date: Thu, 28 Jul 88 11:24:16 EDT From: Allen Wilkinson <urt@nav.icst.nbs.gov> Subject: Neurocomputing software/hardware for Sun 3's? I am not a reader of this news group so if you can help me with my problem please mail your responses to the address below. I am in need of information about neurocomputing software and hardware for a SUN 3. Any information would be greatly appreciated. Thanks in advance, R. Allen "Urt" Wilkinson National Bureau of Standards Bldg 225 Room A216 Gaithersburg, MD 20899 ARPA: urt@icst-cmr.arpa DOMAIN: urt@cmr.icst.nbs.gov ------------------------------ Date: Thu, 28 Jul 88 03:12:44 EDT From: ghoti@bourbaki.mit.edu Subject: Format of a ".o" file? I would like to be able to look at .o files on a SUN3 and figure out how they are put together. For example, I extracted the file printf.o from the library /lib/libc.a and now I would like to see how it works. I can look at the file using the command "od -bc" but how is the file formatted ? One reason I am posting this on SUN-SPOTS is that I don't assume that the answer would be the same on other UNIX systems or even on other SUNs. Please reply to me directly since I don't subscribe to this newsgroup. Thanks. Allan Adler ghoti@cauchy.mit.edu [[ Look at the documentation for "a.out" format. Not that that will help much (it's not very descriptive), but all executables and object files are in "a.out" format. Look at the manual page in section 5 called "a.out" --wnl ]] ------------------------------ End of SUN-Spots Digest ***********************