Tag Info

Hot answers tagged


The command Run will do exactly that. For example, try Run["touch ~/Desktop/blankfile"] If you want to read the results back in, there are a few options, and the choice between them depends on exactly what you want to do. The RunThrough command lets you read the output of a command-line back as a Mathematica expression. For example, try ...


(* make the task, fires once a minute *) task = CreateScheduledTask[PutAppend[MemoryInUse[], "myMemory.log"], 60]; (* start the task *) StartScheduledTask[task] (* ... do your thingys ... *) (* stop (or remove) the task *) StopScheduledTask[task] RemoveScheduledTask[task]


You can solve the issue by wrapping your code with UsingFrontEnd[].


Clusters can be significantly different from each other, so I strongly recommend you talk to someone who uses the same system and ask them for help with the details. However, there is one thing that is clearly incorrect in your job script: To run a script with Mathematica, you need to start the kernel (command line program), not the front end (graphical ...


For this kind of "logging" in SubKernels for example I use the following code: oldoutput = $Output; (* store $Output *) oldmessages = $Messages; (* same for $Messages *) CheckAbort[ logstream = OpenWrite["yourlog.log"]; $Output = {logstream}; (* redirect $Output *) AppendTo[$Messages, logstream]; (* add the logfile as an additional destination for ...


I'm not sure on which operating system you are and whether this makes a difference, but your 4 choice don't do the same. math -run file.m edit: When you change this command to math -run < file.m then it does the same as the next (wrong) alternative. Doesn't do anything with the content of file.m at all, because the -run option expects a command ...


Boardman's tutorial (now in v3) really is excellent (especially for beginners like myself) and has been updated to take into account new image processing functions in MMA v10. It's readable on a Mac using the iBooks.app bundled with OSX 10.9+ and there's also a YouTube version (though I've not had a chance to look at that yet). As to how the Manipulate ...


There are a number of ways to grab moving images off a screen, and for iBooks/iPad resolution, that should be plenty good, though not so much at your local iMax. Examples: http://www.screencast-o-matic.com/ http://www.movavi.com/screen-capture/

Only top voted, non community-wiki answers of a minimum length are eligible