Thanks for your reply, Gang! But what if the data is written by plug_realtime.so. You can't specify an output filename ending in .nii there. I was hoping to find an environment variable similar to AFNI_AUTOGZIP that can be set to write all data as .nii without explicitly specifying it in the filename. It's okay if it doesn't exist. I just want to make sure I didn't miss it.