Dear Volkmar,
I changed the directory to the current working directory in the batch file:
-----------
nrun = 1; % enter the number of runs here
cd('.\');
mkdir('.\RawEPI\classsical');
jobfile = {'specify.m'};
jobs = repmat(jobfile, 1, nrun);
inputs = cell(0, nrun);
for crun = 1:nrun
end
spm_get_defaults('cmdline',true);
spm_jobman('run', jobs);
zippedOutput = zip('Subject1','.\RawEPI\');
-----------
But still I have the same error. The directory should be changed to which point exactly?
Many thanks,
Ali
PS. I don't get this error while I do all pre-processing jobs which I use the same method as 1-level analysis.
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Volkmar Glauche
Sent: den 18 juni 2012 09:01
To: [log in to unmask]
Subject: Re: [SPM] SPM standalone fail jobs on remote machine
Dear Ali,
I can only guess what might be wrong. For your first try, what would make me wonder is the relative path ".\RawEPI\fM00223\swrfM00223_004.img" to your file. You need either make sure that spm_standalone is in the correct base directory where this path is valid (by running "Change Directory" prior to "Model Specification" in your batch) or use absolute paths to files.
I don't have a clue what is going on in the second case. Just some random thoughts: are you sure it is exactly the same batch, called exactly the same way? Does it open up properly in the batch GUI? Does the script include some other statements than matlabbatch{..}...? If so, are these statements safe to run in deployed mode?
Best,
Volkmar
|