[plt-scheme] mzc, modules & background jobs

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Thu Apr 17 02:11:38 EDT 2003

David Alexander VanHorn <dvanhorn at emba.uvm.edu> writes at 01:47 17-Apr-2003 -0400:
>    nohup mzscheme -r file &

If you're going to background it and kill the TTY, be sure to take care
of stdout/stderr/stdin:

    mzscheme -r file >  my-log-file 2>&1 < /dev/null &    # Bourne-like

    mzscheme -r file >& my-log-file      < /dev/null &    # C-shell-like

Depending on your OS, this might prevent some I/O blocking or errors
from blocking or terminating your program.  It might also preserve a
useful error message from MzScheme.

Or forget all about backgrounding and nohup and redirection, and just
run your program inside screen(1).

-- 
                                             http://www.neilvandyke.org/


Posted on the users mailing list.