mathbg

Use mathbg to run a Mathematica script in the background.
Name the file of commands to be read, and the new file to which results should be written.

The script is a convenient way to unsetenv DISPLAY   and then run the lengthier command

nohup nice math -noinit -batchinput -batchoutput < commandfile > resultsfile &

plus give a tip about ``ps jobnumber''.


newton>  mathbg

	USAGE:   mathbg  commandfile  resultsfile

  This script runs your Mathematica commandfile in the background, at a 'nice'
  priority, so that it can run continuously even after you log off.

  No display or text will appear on the screen; all text output (STDOUT and
  STDERR) will go to the "resultsfile" that you name, though you can save
  data or images to other files using Mathematica's Display or Export or
  Put commands. You can check on the status of the job using the Unix
  command "ps".

  You must name your commandfile (containing the Mathematica expressesion) and
  the name of a (not-yet-existing) file to which text output (stdout,stderr)
  should be written.  For example,

	 mathbg  myjob.m  myjob.out