dos batch files idea



In the dos batch file that is made I guess I'm not clear on this: Once
maxima is running, how do you tell it what commands to run?  I don't know if
this is a real obvious answer, but I'm kind of new at doing this.  As a
simple example: If I just wanted a simple plot of sin(x) In the dos batch
file I'd navigate to the maxima exe and the first command in the dos batch
file would be:

maxima.exe

Now maxima is running - without any user intervention how do I tell maxima
to plot2d(sin(x),[x,-6,6]); and then close after it's running?  Do I put the
commands in the dos batch file or should I put the commands in a .mac file
and somehow tell maxima where to look?

Hope I'm clear and thanks in advance for the help.

Jim

On Tue, Sep 30, 2008 at 11:24 PM, James Jarrell <jrjarrell3 at gmail.com>wrote:

> Could someone please tell me if this is possible.  Creating a dos batch
> file that opens and runs maxima is easy to do.  What I was wondering if I
> could create a dos batch file that opens maxima, has it execute a few
> commands and then closes maxima?  My thought is this:  It seems like it is
> quite difficult from the responses I've gathered to actually call maxima
> from java, or c or any other programming language.  But it is easy to have
>  that programming language create a dos batch file and run it.  If the batch
> file can give maxima a list of commands - one of which writes maxima outuput
> to a file to be read later by the program, problem solved.  Someone please
> let me know if this idea is plausible or not.  Thanks.
>
> JIm
>