How to call a mathematica program from the command line, with command-line args, stdin, stdout, and stderr.
Call a Mathematica program from the command line, with command-line args, stdin, stdout, and stderr.