Path: utzoo!mnetor!uunet!mcvax!tnosoes!tom From: tom@tnosoes.UUCP (Tom Vijlbrief) Newsgroups: comp.unix.questions Subject: Re: Shell script for using interpreters Message-ID: <344@tnosoes.UUCP> Date: 29 Mar 88 09:53:52 GMT References: <134@longway.TIC.COM> <602@nunki.usc.edu> Reply-To: tom@rainbow.UUCP (Tom Vijlbrief) Organization: TNO Institute for Perception, Soesterberg, The Netherlands Lines: 32 Keywords: Lisp, shell script. 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 tried writing the following script, which failed to take in the >input from the keyboard. > lisp << 'EOF' > (load ) > 'EOF' >This loads the file and takes the input as EOF, which exits the Franz >lisp interpreter without waiting for my keyboard input. Try: trap "/bin/rm -f /tmp/lispgo$$" 0 1 2 3 15 cat > /tmp/lispgo$$ << 'EOF' (load ) EOF cat -u /tmp/lispgo$$ - | lisp =============================================================================== Tom Vijlbrief TNO Institute for Perception P.O. Box 23 Phone: +31 34 63 14 44 3769 DE Soesterberg E-mail: tnosoes!tom@mcvax.cwi.nl The Netherlands or: uunet!mcvax!tnosoes!tom ===============================================================================