On 4. Nov 2006, at 17:36, Brian wrote:
I don't know if this is possible with matlab, but you might be able to do something like:
% mkfifo /tmp/matlab_in % matlab < /tmp/matlab_in
Excellent suggestion - writing to the pipe via echo with the `-n' flag keeps matlab from exiting after each command.
Anyone willing to walk me through this? Do I need to add a command to the Matlab bundle?
It’s not exactly simple -- I attached a ruby script I had lying around which starts ‘sh’ and accepts commands written to /tmp/ testpipe -- but it is a single direction connection, so the result stays with the master process.
I'm looking to keep a Matlab session running in a terminal, and be able to send snippets of code to this session via TextMate.
It sounds like this is a job for TerminalMate.