The script is a convenient way to unsetenv DISPLAY   and then run the lengthier command
nohup nice matlab < mfile > resultsfile &
plus give a tip about ``ps jobnumber''.newton> matlabbg USAGE: matlabbg mfile resultsfile This script runs your Matlab M-file 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) that normally would print to the window will instead go to the "resultsfile" that you name. (In the Matlab script you may write data or images to other files using print/save/write commands.) You can check on the status of the job using the Unix command "ps". You must name your M-file (containing the Matlab commands) and the name of a (not-yet-existing) file to which stdout/stderr output should be written. For example, matlabbg myjob.m myjob.out