Tips Martin Pyka on 19 Aug 2008 08:10 pm
Shutdown your PC!
If you want to shutdown your PC when your SPM-batch is finished, you should use the Matlab console instead of the SPM-GUI for running your job. Go into the folder where you have saved your batch-job as MAT-file. Then type
> load('your_job_file.mat');
> spm_jobman('run', jobs); !shutdown -s -f;
The command !shutdown -s -f is for Windows-users. Linux-users have to type
> spm_jobman('run', jobs); !shutdown -h -now;
When the job is finished your PC will automatically shut down. The exclamation mark indicates that the following command should be executed at the console of your OS. With this trick you could execute any kind of command or program that is installed on your system.