Search code examples
bashlispclisp

Forking and saving output of a lisp program


I have a lisp program that needs to run for a long, long time. I wanted to make a bash script so that I could just do $./script.sh& on my school's computer and then check the output periodically without having to be personally running the process. All I want to do is call the program "clisp" and have it execute these commands:

(load "ll.l")
(make)

and save all output to a file. How do I make this script?


Solution

  • You just want something like this:

    #!/bin/sh
    clisp > OUTPUTFILE 2>&1 << EOF
    (load "11.1")
    (make)
    EOF