From: <pa...@rc...> - 2000-12-30 17:53:00
|
I wrote: > Richard Phillips wrote: > > Thought you may have spotted newbieness of request - I simply wanted a > > text file of ptal's syntax, which is obtained by ptal-printd >& foo.txt, > > of course. > Oh -- silly me! :-) Actually, I think "ptal-printd >foo.txt &" would be > the more correct syntax. Evidently I was still confused when I wrote that! I had forgotten that I had changed ptal-printd to send its messages to standard error rather than standard output, which was what you were getting at. So the syntax you suggested above ("ptal-printd >& foo.txt") is correct after all. Other commands I tried that also work include "ptal-printd &>foo.txt" and "ptal-printd 2>foo.txt" (which is what I typically use). It would only be necessary to include the final ampersand if you want it to start in the background, which isn't needed when running ptal-printd with no parameters, because it exits right away anyway. Sorry about the misinformation! :-) David |