Hi -
3dhistog is giving weird complaints when I shell script it from the cmd line in bash. Here's what I type:
for i in *.nii; do 3dhistog $i | head -2 | tail -1; done
and here's what it says:
++ 3dhistog: AFNI version=AFNI_2011_12_21_1014 (Aug 23 2014) [64-bit]
Fatal Signal 13 (SIGPIPE) received
3dhistog
Bottom of Debug Stack
** AFNI version = AFNI_2011_12_21_1014 Compile date = Aug 23 2014
** [[Precompiled binary linux_openmp_64: Aug 23 2014]]
** Program Abort **
** If you report this crash to the AFNI message board,
** please copy the error messages EXACTLY, and give
** the command line you used to run the program, and
** any other information needed to repeat the problem.
** You may later be asked to upload data to help debug.
0.000000 432102 432102
Noteworthy is that it seems to actually work, as can be seen in the last line -- it just gets frightened and confused when I loop through files in bash. I'm not sure if this is 3dhistog being weird, or bash doing something weird with signaling in loops, or what. But I figured I'd mention it.