Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 (USS@Tek, v1.1) based on 4.3bsd-beta 6/6/85; site tektools.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!hplabs!tektronix!tektools!jerryp From: jerryp@tektools.UUCP (Jerry Peek) Newsgroups: net.wanted.sources Subject: Need "calls" program for shell scripts Message-ID: <788@tektools.UUCP> Date: Thu, 6-Mar-86 13:57:46 EST Article-I.D.: tektools.788 Posted: Thu Mar 6 13:57:46 1986 Date-Received: Sat, 8-Mar-86 23:45:44 EST Reply-To: jerryp@tektools.UUCP (Jerry Peek) Organization: Tektronix, Inc., Beaverton, OR. Lines: 28 I'm looking for a program that reads through a shell script and extracts the names of all commands that the shell might run (call). For instance, if you fed the following shell script to it: for foo in * do test -r $foo && pr $foo | lpr (echo printed $foo at `date`; ls -l $foo; echo ======) > logfile done the program I'm looking for would print something like this: test pr lpr echo date ls echo Anyone have such a beast? Thanks... --Jerry Peek, Tektronix, Inc. US Mail: MS 74-222, P.O. Box 500, Beaverton, OR 97077 uucp: {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp CS,ARPAnet: jerryp%tektools@tektronix.csnet Phone: +1 503 627-1603