Re: refdbc -C addref & stdin

Michael Smith <[email protected]>
Newsgroups gmane.text.refdb.devel
Message-ID <20031211152234.GA2300@theThirdPoliceman>
Hi Bruce,

You wrote:

> On Dec 11, 2003, at 7:15 AM, Michael Smith wrote:
> 
> >That is, when you try the following, does refdbc stop and wait for you
> >to enter data on standard input?
> >
> >  refdbc -d refdb2  -t ris -C addref
> >
> >Or, if you do something like either of the following, does it work?
> >
> >  refdbc -d refdb2  -t ris -C addref < data.ris
> >
> >  cat data.ris | refdbc -d refdb2  -t ris -C addref
> >
> >None of those work for me. My refdbc doesn't seem to be able to read
> >from standard input at all.
> 
> OK, I added the path to my .emacs file.  The first does not add 
> anything, and tells me so.  The other two work fine on my installation.

OK. That's good to know. Thanks for checking.

Tonight was the first time I actually tried adding data to the db, and
environment I was trying it on is a Cygwin install. Haven't tried it on
my Linux install yet.

Anyway, got it working on Cygwin by hacking the refdbc source. So the
both the command line and Emacs interaction are working as expected for
me now.

> If I try to do it from the menu though (this with an risx file), I get 
> this:
> 
> Could not set terminal attributes

That's a warning coming from refdbc. I'm not sure what it indicates, but
I don't think it causes any problems.

> data read error. Stop.

damn. Well. that one is also coming from refdbc too, and I think it's a
fatal error. If you're able to succesfully add data via the command line
but not from within Emacs, then either I'm not using the Emacs
shell-command-on-region function correctly, or there's something wrong
with the way your Emacs is interacting with the shell.

  --Mike
signature.asc (application/pgp-signature, 155 B)
-----BEGIN PGP SIGNATURE-----

iD8DBQE/2Iu6sGCNMsnBsxkRAg11AJwIiHh+aUvp+3V4iVa10JFw+7W3DgCeK7fh
YfPlSCCzbhbNXZHejeiEfek=
=mZ3P
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.