vincentberenz
February 20th, 2010, 05:15 AM
Dear all,
When running a command line application, usually the output can be caught using | or redirected to a file using > or >>.
But sometime it is not. As an example, if you use the application "dict" like :
dict coach >> foo.txtthen "foo.txt" contains definitions of "couch" and so on.
But if you use a word that is not in the dictionary :
dict coah >> foo.txtthen nothing is printed in foo.txt and other information are displayed in the console.
(in that particular case :
"No definitions found for "coah", perhaps you mean:
gcide: CoA Corah coach Noah COOH cosh Coag Coak Coal Coat Coax
wn: coach noah cosh coal coat coax")
It turns out it is this output I am trying to catch in a file.
Is there any way I can redirect this output ? (for running into scripts).
Many thx
When running a command line application, usually the output can be caught using | or redirected to a file using > or >>.
But sometime it is not. As an example, if you use the application "dict" like :
dict coach >> foo.txtthen "foo.txt" contains definitions of "couch" and so on.
But if you use a word that is not in the dictionary :
dict coah >> foo.txtthen nothing is printed in foo.txt and other information are displayed in the console.
(in that particular case :
"No definitions found for "coah", perhaps you mean:
gcide: CoA Corah coach Noah COOH cosh Coag Coak Coal Coat Coax
wn: coach noah cosh coal coat coax")
It turns out it is this output I am trying to catch in a file.
Is there any way I can redirect this output ? (for running into scripts).
Many thx