Menu

#263 Command Line Function Mode that doesn't exit FreeMat when finished

v4.1 (minor)
open
nobody
5
2014-04-09
2014-04-09
Aaron
No

I am in need of a way to execute FreeMat from the Windows command line in something similar to function mode (-f flag), but without FreeMat quitting when the function has completed.

I've looked through the source code files and it looks like this feature could be implemented in the form of a new command line flag, based on the -f flag. The only change I can see that would be required is to line 27 in the new file based on FuncMode.cpp. Unless there is something about the Qt GUI system that I am not aware of, omitting the line "emit SendCommand("quit");" from the FuncMode::Fire() method would cause the function to execute within FreeMat, then GUI control to be handed back to the user (i.e. me). I would like to be able to run a user defined function programmatically through the command line, then be able to interact with the FreeMat GUI after the function has completed.

Also, is there a possibility of getting a working build environment, that will produce a FreeMat Windows executable, in a virtual machine format (VMware or virtualbox, etc.)? I'm probably capable of contributing to the development on this project, but don't have the time or energy to devote to creating a working build environment... Thanks!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB