VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Jan 28 2016 - 16:11:55 CST
- Next message: Axel Kohlmeyer: "Re: making a movie in a tcl script using graphics commands"
- Previous message: Nima Emadi: "Re: making a movie in a tcl script using graphics commands"
- In reply to: Charles McAnany: "Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Next in thread: Charles McAnany: "Re: Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Reply: Charles McAnany: "Re: Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Do you only need this for the PSF plugin, or are you going to be trying to
do stdout type output for others too?
Cheers,
John
On Thu, Jan 28, 2016 at 01:23:46PM -0500, Charles McAnany wrote:
> Friends,
> I'm building a program that should write a .psf file to stdout (literally,
> open_file_write("/proc/self/fd/1", "psf", natoms); and similar for other
> platforms), and I'm sort of confused by the mix of printf( and
> fprintf(stderr, in plugins/molfile_plugin/src/psfplugin.c. It seems that
> about a third of the errors are sent to stdout and the rest to stderr.
>
> For a program that writes a psf to stdout, this is sort of irritating
> because I have to either taint the vmd source by changing all the printf(s
> to fprintf(stderr,s or make a great fuss with file descriptors (which is
> also a portability problem).
>
> If this would be a simple fix, I'd really appreciate it. Of course, if it
> would break something in vmd (like sending messages to the shell rather
> than the tk console), it's a pretty minor request compared to the
> usability of vmd. =)
>
> Cheers,
> Charles McAnany.
-- NIH Center for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/
- Next message: Axel Kohlmeyer: "Re: making a movie in a tcl script using graphics commands"
- Previous message: Nima Emadi: "Re: making a movie in a tcl script using graphics commands"
- In reply to: Charles McAnany: "Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Next in thread: Charles McAnany: "Re: Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Reply: Charles McAnany: "Re: Feature request: Change printf( to fprintf(stderr, in molfile plugins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]