Hello All,
I have tracked down the source of the '/dev/null: bad number' error. It comes from
$FSLDIR/bin/siena_flirt (where $FSLDIR is '/usr/local/fsl4.0.2').
First, the call to whirlgif has an error in the redirection syntax. siena_flirt is a bourne shell:
% head -1 `where siena_flirt`
==> /usr/local/fsl4.0.2/bin/siena_flirt <==
#!/bin/sh
But the redirection incorrectly uses tcsh syntax:
${FSLDIR}/bin/whirlgif -o ${A1}_and_${A2}.gif -time 50 -loop 0 gr${A1}${A2}j.gif gr${A1}${A2}k.gif
>& /dev/null
Correct bourne sh syntax is:
${FSLDIR}/bin/whirlgif -o ${A1}_and_${A2}.gif -time 50 -loop 0 gr${A1}${A2}j.gif gr${A1}${A2}k.gif 2>&1 /dev/null
But there is still a problem. When I remove the redirection, whirlgif throws an error:
Image #1: GifReadHeader: Unknown block type
The input gif files are fine (I can view them just fine in the safari web browser).
$ echo $FSLDIR
/usr/local/fsl4.0.2
$ A1=A
$ A2=B
$ ls -l gr${A1}${A2}j.gif gr${A1}${A2}k.gif
-rw-rw-r-- 1 bettyann fmri 327127 Jul 13 00:43 grABj.gif
-rw-rw-r-- 1 bettyann fmri 327127 Jul 13 00:43 grABk.gif
$ ${FSLDIR}/bin/whirlgif -o ${A1}_and_${A2}.gif -time 50 -loop 0 gr${A1}${A2}j.gif
gr${A1}${A2}k.gif
whirlgif Rev 3.04 (c) 1997-1999 by Hans Dinsen-Hansen
(c) 1995-1996 by Kevin Kadow
(c) 1990-1993 by Mark Podlipec
Image #1: GifReadHeader: Unknown block type
$
$ ls -l ${A1}_and_${A2}.gif
-rw-rw-r-- 1 bettyann fmri 13 Jul 13 00:49 A_and_B.gif
Any ideas as to what is wrong with whirlgif and/or the input .gif files?
Thank you,
- BettyAnn
|