Hi Julien,
Note that afni needs to start first, and may need
some time to get started. Here is a sample script
that we use in class. Maybe it will be of help.
This is run from the AFNI_data1/EPI_manyruns
directory, from the class data (if you have that).
- rick
----------------------------------------------------------------------------
#!/bin/tcsh
# demo real-time data acquisition and motion detection with afni
# use environment variables in lieu of running the RT Options plugin
setenv AFNI_REALTIME_Registration 3D:_realtime
setenv AFNI_REALTIME_Graph Realtime
if ( ! -d afni ) mkdir afni
cd afni
afni -rt &
sleep 5
cd ..
echo ""
echo ""
echo ready to run Dimon
echo -n press enter to proceed...
set stuff = $<
Dimon -rt -use_imon -start_dir 001 -pause 200
----------------------------------------------------------------------------