Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!pacbell!att-ih!ihnp4!ihlpf!lukas From: lukas@ihlpf.ATT.COM (00704a-Lukas) Newsgroups: comp.unix.questions Subject: Re: Shell script for using interpreters Message-ID: <4183@ihlpf.ATT.COM> Date: 29 Mar 88 18:16:02 GMT References: <134@longway.TIC.COM> <602@nunki.usc.edu> Reply-To: lukas@ihlpf.UUCP (00704a-Lukas,J.) Organization: AT&T Network Systems - Lisle Illinois Lines: 27 In article <602@nunki.usc.edu> sreerang@castor.usc.edu (Sreeranga Rajan) writes: >I would like to know how I could write a shell script to perform the >following actions: > enter lisp interpreter > load all the required files > take input from the keyboard after loading > the files I had (what I think is) a similar request to the net awhile back. It involved a "startup" file (sf) of commands that I wanted executed each time a given program was invoked. Logically, that involves catenating the two sources together; I recieved several responses: (cat sf; cat) | prog cat sf - | prog cat sf /dev/tty | prog There are slight differences; choose the one that best fits. You may also need the -u option to cat. I dont know if this is what you are looking for, or if it applies to lisp; just trying to start paying back the debt I owe to the net. -- John Lukas ihnp4!ihlpf!lukas 312-510-6290