From: Roger Dannenberg <rbd@cs...> - 2005-09-18 15:05:58
Bruce Sharpe writes:
I want to create a Nyquist script that can be run unattended
from a command line. If I put (exit) as the last statement
of my script, it doesn't seem to exit until I press
the Enter key.
I've often had problems with command line programs under
Windows because, when debugging, the program will often
Edit without giving me a chance to look at the output.
One work-around is to give Nyquist some newlines as
standard input, e.g.:
> nyquist my-script.lsp < some-newlines.txt
If my-script.lsp calls (EXIT), Nyquist will continue reading
from some-newlines.txt, which will cause Nyquist to exit.
> > nyquist my-script.lsp < some-newlines.txt
> If my-script.lsp calls (EXIT), Nyquist will continue reading
> from some-newlines.txt, which will cause Nyquist to exit.
If all you need to do is make it wait for a keypress when exiting, then
you could make a nyq-run.bat file or something like that which would
would take any parameters, pass them to nyquist, and then wait for a
keypress. I think the command is "WAIT", but I don't remember as I
don't use Windows except when forced, but I have done batch files that
do exactly that before for a client.
Get latest updates about Open Source Projects, Conferences and News.