Shell script for using interpreters

Tom Vijlbrief tom at tnosoes.UUCP
Tue Mar 29 19:53:52 AEST 1988


In article <602 at nunki.usc.edu> sreerang at 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 <filename>)
>			'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 <filename>)
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 at mcvax.cwi.nl
The Netherlands				    or:	uunet!mcvax!tnosoes!tom
===============================================================================



More information about the Comp.unix.questions mailing list