# Tag Info

2

Mathematica (version 9.0.1.0) looks for /usr/lib64 in it's 64bit linux version. Most installs (Crunchbang "Waldorf" in my case) will not generate this directory and instead create a /usr/lib directory in a native 64 bit system, and a lib32 for "legacy" code. After fooling around with modifying path variables etc, I have found that the fastest and easiest ...

2

This is to answer: Can I redefine the Plot command such that each is automatically exported to a separate file with automatic naming? First, a little history (in addition to what Alexey said): In Mathematica versions earlier than 6, graphics were shown (displayed) as a side effect of Show. Show was essentially the "print" command for graphics, much ...

2

Since Mathematica version 6 you always need the native Mathematica FrontEnd for Exporting graphics because starting from this version all graphical Export-related functionality is moved into the FrontEnd. But you probably still can use the old kernel-based graphical functionality from version 5 by evaluating: << Version5Graphics Old graphical ...

2

This is a shell dependent issue. With csh/tsch the & automatically nohup's, so just this works: math -script test.m < /dev/null & There seems to be a mathematica/csh issue that the script hangs if disconnected form stdin even though it doesn't try to read anything

2

Another option would be to use the at command to create detached jobs: echo "math -script test.txt" | at now

8

You can use GNU screen to make a sort of persistent terminal that allows you to resume work wherever you left off. Take a look at the many tutorials available. It's not completely clear from your question whether the better solution is this, or nohup (see Stefan's answer). Use nohup if your workflow is non-interactive: log in, start a batch job that ...

13

You need to daemonize your script: nohup math -script test.txt 0<&- &>/dev/null & Now this will run as a background process with no output captured. If your script does indeed produce output, just replace /dev/null with the filename. In order to daemonize something you need to disconnect all the automatically connected streams (stdin, ...

Top 50 recent answers are included