Write To Console

Posted by Roger Blanchard on 07-May-2018 09:47

Is there anyway to write to the windows console like you can in c#.

For example, System.Console.WriteLine ("Test"). In C# this would be written to the windows console. I have tried this in OE11.7 but nothing is written to the windows console.

We are using a scripting tool to call prowin.exe to get the DB/App version and would prefer writing this info to console versus writing to text file.

Any ideas would be great.

All Replies

Posted by Matt Baker on 07-May-2018 09:58

Yes. But you have to start the progress AVM in batch mode.  Using the -b flag when using the GUI or CHUI clients.

knowledgebase.progress.com/.../P105118

If in batch mode, regular message statements (or PUT statements) will go to stdout.  If not in batch mode, they go to the screen.

If running on appserver, then message statements got to the agent log file.

Posted by Mike Fechner on 07-May-2018 09:59

 _progres -b -p test.p > con

/* test.p */

MESSAGE TODAY.

Posted by Roger Blanchard on 07-May-2018 10:04

Thanks Mike and Matt.

That should do the trick.

This thread is closed