Alle Meije Wink wrote:
> Maybe it is possible to create a shell script that first opens all the
> figures (main, graphics, interactive?) and then runs your job. Your
> problem seems to be caused by some step assuming that there is a window
> while actually there isn't.
I think the problem is not that SPM expects a figure to have already
been created, but that Matlab is *unable* to create one because either
Matlab is run with the -nodesktop switch and/or $DISPLAY is not
(validly) set in the environment (possibly because Matlab's running on
a server without a screen or at least without X-windows running).
> Volkmar Glauche wrote:
>> I am afraid this would need hacking SPM code :-( There is no
>> adaptation to run in text mode. And after all, you will definitely
>> want to check each spatial and statistical processing step
Well... yes, but it would be nice to be able to run everything
unattended (perhaps spread over multiple machines, possibly without
screens, maybe left over a weekend), and then *later* check through
the intermediate steps (one machine, with screen, preferably when very
bored!).
Some of the code does seem happy without figures, but sadly not all...
presumably code should check for the defaults.cmdline flag and not try
to use graphics windows if it's true, or have I misunderstood the
purpose of this flag?
Anyway, just felt like repeating myself ;-)
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0606&L=SPM&P=34310
Best,
Ged.
P.S. If you are running on a screen-less server, on a Unix network,
then a possible solution would be to set up some unused desktop
machine (with screen and X running) and run Matlab on the server(s)
with DISPLAY=unused_desktop:0.0 set so that figures can happily pop up
on this other box, while the server gets on with the processing.
|