1. Bind question
- Posted by Brian Jackson <bjackson at 2FARGON.COM> Mar 01, 2000
- 379 views
Is there a way to capture the output of the bind program, so that I could write a Windows interface to it and redirect the output to a scratch file? I can get it to run from with my program, but the text output always goes to the console. I read bind.doc and it discusses redirecting streams from bound programs, but not bind itself. Any hints, or Rob, is this perhaps a built-in 'feature' of bind? Thanks, Brian
2. Re: Bind question
- Posted by Robert Craig <rds at ATTCANADA.NET> Mar 01, 2000
- 365 views
Brian Jackson writes: > Is there a way to capture the output of the bind program, Yes there is, but there's a trick to it. You can't simply run bindw.bat in a system command and redirect the standard input and/or standard output. DOS .bat files can't handle I/O redirection in that way. You have to run line 2 of bindw.bat directly, e.g. ex.exe bind.ex -w32 < answers > questions where you have set up your answers to the bind questions in a file called (say) answers. Most of the bind questions can actually be answered using command-line options, but you can't specify the destination file that way -- I'll add that in the next release. Also, bind will always output some text if you don't redirect standard output. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com