AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
June 01, 2015 06:29PM
I tried to get this to work at one point, and IIRC the problem is that instead of sending the output back over the connection from afni to plugout_drive, afni just sends the output to its own stdout... which is cluttered with other information. So you have to a) pipe the output of afni, not of plugout_drive, and b) do some work to filter out the part of the afni output that you don't want. Here's the script I created when I was trying to figure out what that was:
$ cat testdrive_afni.bash
#!/bin/bash

afni -yesplugouts "$@" > >(sed 's/.*/\x1b\[31m&\x1b\[0m/') \
                       2> >(sed 's/.*/\x1b\[1;31m&\x1b\[0m/' 1>&2) &
plugout_drive -v 2> >(sed 's/.*/\x1b\[1m&\x1b\[0m/' 1>&2)
If you run this, you'll open an afni and get an interactive plugout_drive prompt. Both stderrs will be red, and afni's output streams will be bright or bold or whatever you have set up on your terminal for emphasis. You might need to add a few seconds of sleep between those two commands if the connection isn't establishing correctly.

HTH,
ijs
Subject Author Posted

Plugout_Drive GET_DICOM_XYZ output

rollom June 01, 2015 05:22PM

Re: Plugout_Drive GET_DICOM_XYZ output

Isaac Schwabacher June 01, 2015 06:29PM

Re: Plugout_Drive GET_DICOM_XYZ output

rollom June 02, 2015 12:54PM

Re: Plugout_Drive GET_DICOM_XYZ output

Isaac Schwabacher June 02, 2015 02:45PM

Re: Plugout_Drive GET_DICOM_XYZ output

rollom June 02, 2015 04:21PM

Re: Plugout_Drive GET_DICOM_XYZ output

Daniel Glen June 02, 2015 05:37PM

Re: Plugout_Drive GET_DICOM_XYZ output

Isaac Schwabacher June 02, 2015 05:41PM

Re: Plugout_Drive GET_DICOM_XYZ output

rollom June 03, 2015 10:33AM

Re: Plugout_Drive GET_DICOM_XYZ output

Daniel Glen June 03, 2015 01:47PM

Re: Plugout_Drive GET_DICOM_XYZ output

rollom June 03, 2015 02:21PM