[comp.sys.att] Software not on 3b1

dave@dms3b1.UUCP (Dave Hanna) (04/14/88)

I recently acquired a 3b1 after 3 years of working with UniSoft
implementations and ULTRIX, and I find I miss some of the tools
that I had gotten used to. 

1. ctags - it's ironic that vi supports use of tags, but the
system doesn't give you a tool for creating a tags file.

2. strings - not terribly critical, and it certainly wouldn't be
hard to write, but it is rather convenient.

3. calendar - I've become dependent on those reminder messages.

Does anyone know if there are public domain versions of any of 
these (or other missing tools) available, and if so where to get them?
-- 
Dave Hanna,  Daltech MicroSystems    |  "Do or do not -- There is no try"
P.O. Box 584, Bedford, TX 76095      |                        - Yoda
(214) 358-4534   (817) 540-1524      |
UUCP:  ...!killer!gtmvax!dms3b1!dave |

wtm@neoucom.UUCP (Bill Mayhew) (04/16/88)

<< missing strings and calendar >>

Hi,

Check out the Korn shell.  "strings" is one of the keywords
recognized by the shell, but it doesn't seem to exactly work the
way it should.  Oh well.  Must be another one of those kludges.

Below, I have attached a short c progam that is fairly analogous to
the Unix strings program that comes with BSD.  It was derived
separately by Jeff Friedl and myself, so I don't think it violates
any copyrights, as we have not seen the source.

As for calendar, I'm working on it.  Basically you need to write a
little bit of code that can generate a regular expression based on
the date (accounting for weekends, of course) that you feed to
egrep along with your calendar database.  My program ain't pretty,
so I don't want to post it yet.  I wrote a bourne shell procedure
that runs at 4:00 am everyday to egrep calendars for all the users
on my system by pulling names from /etc/passwd.  One thing that I
added is a #include directive (that is not on Sys V, but I think
Berkeley has it) so that work groups can share a common calendar.


Sorry to post source here, but our vax is braindamaged about
moderated gourps.  This is pretty short anyway:

----------------------------cut for strings.c----------------------

/* Bill Mayhew (impulse!wtm)
 * Jeff Friedl (location currently not known)
 * strings
 * usage: stings file  (finds ascii strings in files of any type)
 * on 3b1 compile with "make strings; strip strings"
 * No warranty expressed or implied...
 */

#include <fcntl.h>
#include <stdio.h>


main(argc,argv)
int	argc;
char	*argv[];
{
	int 	num, length=256, i;
	char 	c,str[100], buf[256];
	FILE 	*out;
	int	in;

	if (argc<2) {
		printf("Usage: %s file [ file ]\n",argv[0]);
		exit(-1);
		}

	if (argc>=2) {
		if ( (in=open(argv[1],O_RDONLY,0644))==-1) {
			perror(argv[1]);
			exit(-1);
			}
		}

	if (argc>=3) {
		if ( (out=fopen(argv[2],"w"))==NULL) {
			perror(argv[2]);
			exit(-1);
			}
		}
	else {
		out=stdout;
		}



	while(length==256) {
	    length=read(in,&buf[0],256);
	    for(i=0;i<length;i++) {
        	if ( (buf[i] >= ' ') && ( buf[i] <= '~' ) ) {
         		str[num++] = buf[i];
       			}
        	else {
        		if (num > 5 ) {
        			str[num] = '\0' ;
      				fprintf(out,"%s\n",str);
        			}
             		num = 0 ;
       			}
	    }
      	}
      	if (num > 5)
      	{
      		str[num] = '\0' ;
            	fprintf(out,"%s\n",str);
      	}
}

brant@manta.UUCP (Brant Cheikes) (04/17/88)

In article <104@dms3b1.UUCP> dave@dms3b1.UUCP (Dave Hanna) writes:
>I recently acquired a 3b1 [...] and I find I miss some of the tools
>
>1. ctags

There's a CTAGS provided in the Gnu Emacs distribution (free).  I can
provide a 3b1 Gnu Emacs distribution, or just the CTAGS code.

>2. strings

That's available (PD), I've seen people mention it, and wouldn't mind
getting hold of it myself.

>3. calendar

A couple different kinds of BSD calendar routines are sitting, waiting
for your call, in The Store!.  Before we get another rush of "What's
The Store?" queries, it's essentially a bbs run by AT&T from which a
number of more or less useful UNIXpc software packages are available.
You need to install something called CATALOG on your 3b1 before you
can access The Store... I have CATALOG, as do many others.

Seek and ye shall find.
-- 
Brant Cheikes
University of Pennsylvania
Department of Computer and Information Science
ARPA: brant@linc.cis.upenn.edu, UUCP: ...drexel!manta!brant

lenny@icus.UUCP (Lenny Tropiano) (04/17/88)

In article <104@dms3b1.UUCP> dave@dms3b1.UUCP (Dave Hanna) writes:
|>
|>I recently acquired a 3b1 after 3 years of working with UniSoft
|>implementations and ULTRIX, and I find I miss some of the tools
|>that I had gotten used to. 
|>
|>1. ctags - it's ironic that vi supports use of tags, but the
|>system doesn't give you a tool for creating a tags file.
|>
|>2. strings - not terribly critical, and it certainly wouldn't be
|>hard to write, but it is rather convenient.
|>
|>3. calendar - I've become dependent on those reminder messages.
|>
|>Does anyone know if there are public domain versions of any of 
|>these (or other missing tools) available, and if so where to get them?

ctags and strings exist in the public domain form form your local
comp.sources.unix sites or comp.sources.misc sites.

As far as calendar, their is a program called REMINDER from THE STORE,
that performs a similar function.  Otherwise the Calendar program that
you can find in your /etc/fixes directory (if not installed already)
has similar functions to remind you.

							-Lenny

-- 
US MAIL  : Lenny Tropiano, ICUS Computer Group        IIIII  CCC U   U  SSS
           PO Box 1                                     I   C    U   U S
	   Islip Terrace, New York  11752               I   C    U   U  SS 
PHONE    : (516) 968-8576 [H] (516) 582-5525 [W]        I   C    U   U    S
TELEX    : 154232428 [ICUS]                           IIIII  CCC  UUU  SSS 
AT&T MAIL: ...attmail!icus!lenny  
UUCP     : ...{mtune, ihnp4, boulder, talcott, sbcs, bc-cis}!icus!lenny 

gnews@gnosys.UUCP (Gary S. Trujillo ) (04/19/88)

In article <104@dms3b1.UUCP> dave@dms3b1.UUCP (Dave Hanna) writes:
>
> I recently acquired a 3b1 after 3 years of working with UniSoft
> implementations and ULTRIX, and I find I miss some of the tools
> that I had gotten used to. 

(He mentions "calendar", "strings", and "ctags".)

Dave,

I have the code you want, but host "gtmvax" seems to want to route through
"rutgers", which can't find "dms3b1".  I have tried getting a message to you
via variations on your return address twice, and both have been bounced.
Please send me an alternate path.

To all,

I have the code that Dave wants.  If there is sufficient interest in any
of what he mentions, I can post same.

-- 
Gary S. Trujillo			{ihnp4,linus,bbn,m2c}!spdcc!gnosys!gst
Somerville, Massachusetts		     {cirl,ima,stech,wjh12}!gnosys!gst

kak@stc-auts.UUCP (Kris Kugel) (04/29/88)

> As for calendar, I'm working on it.  Basically you need to write a
> little bit of code that can generate a regular expression based on
> the date (accounting for weekends, of course) that you feed to
> egrep along with your calendar database.  

I've got a calendar program which uses lex to parse the dates.
I could clean that up and post it if there is enough interest.

	Kris A. Kugel
	Storage Tek:    ...{ uunet!nbires, ncar, ihnp4 }!stcvax!stc-auts!kak
	"It is better to light one small cannibal than to torch the duchess"