Does abt.exe have a stdout?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Does abt.exe have a stdout?

Richard Sargent
Administrator
When we run abt.exe, it opens the Transcript (at least). But, does the running abt.exe have a stdout and stderr that could be caught and redirected by the command line used to start it?

I am aware of the -l ("ell") command line option. The documentation doesn't read like it is a real stdout.
I am also aware of the OSCall>>#allocConsole method. That may be useful in some scenarios, but redirection to a file is still an issue.


Thanks, Seth, for answering this. :-)

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/a223eb9a-a0ec-4219-959b-985df60c78d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does abt.exe have a stdout?

Seth Berman
Hi Richard,

I don't know off the top of my head.
When I get some time, I will research this issue and let you know what I find out.

- Seth

On Tuesday, May 21, 2019 at 6:43:42 PM UTC-4, Richard Sargent wrote:
When we run abt.exe, it opens the Transcript (at least). But, does the running abt.exe have a stdout and stderr that could be caught and redirected by the command line used to start it?

I am aware of the -l ("ell") command line option. The documentation doesn't read like it is a real stdout.
I am also aware of the OSCall>>#allocConsole method. That may be useful in some scenarios, but redirection to a file is still an issue.


Thanks, Seth, for answering this. :-)

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/b6bfcb3e-fb5a-4e03-9b62-e9592a3a3788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does abt.exe have a stdout?

Mariano Martinez Peck-2
In reply to this post by Richard Sargent


On Tue, May 21, 2019 at 7:43 PM Richard Sargent <[hidden email]> wrote:
When we run abt.exe, it opens the Transcript (at least). But, does the running abt.exe have a stdout and stderr that could be caught and redirected by the command line used to start it?


You confused me hahhaha. You are talking about Windows concept abt.exe  and Unix concepts (stdout/stderr).  
 
I am aware of the -l ("ell") command line option. The documentation doesn't read like it is a real stdout.

says:

On UNIX systems, use redirection of stdout and stderr instead of –l. For example, use > ESVMLOG 2>&1 to log to file ESVMLOG.

So... all you would need to do is:

TranscriptTTY default show: 'foo'.

But notice that you must use TranscriptTTY and not plain Transcript. 

Does this help? 

--
Mariano Martinez Peck
Software Engineer, Instantiations Inc.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/CAOUkibGtAg2fbYHJwd_oo%2BE7R3dmqs_4FfX0UUwhz7M5jPBeiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does abt.exe have a stdout?

Richard Sargent
Administrator
On Thu, May 23, 2019 at 4:44 AM 'Mariano Martinez Peck' via VA Smalltalk <[hidden email]> wrote:


On Tue, May 21, 2019 at 7:43 PM Richard Sargent <[hidden email]> wrote:
When we run abt.exe, it opens the Transcript (at least). But, does the running abt.exe have a stdout and stderr that could be caught and redirected by the command line used to start it?


You confused me hahhaha. You are talking about Windows concept abt.exe  and Unix concepts (stdout/stderr).  

Windows also has stdout and stderr. It's just that GUI applications tend to make no use of them.

 
I am aware of the -l ("ell") command line option. The documentation doesn't read like it is a real stdout.

says:

On UNIX systems, use redirection of stdout and stderr instead of –l. For example, use > ESVMLOG 2>&1 to log to file ESVMLOG.

So... all you would need to do is:

TranscriptTTY default show: 'foo'.

Yes. TranscriptTTY is a "kind of" stdout. Perhaps it really does use stdout. It's not documented as such.


But notice that you must use TranscriptTTY and not plain Transcript. 

Does this help? 

But, if I call a C library and it writes to stdout, where will it go?


--
Mariano Martinez Peck
Software Engineer, Instantiations Inc.

--
You received this message because you are subscribed to a topic in the Google Groups "VA Smalltalk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/va-smalltalk/yNW5WbCXMAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/CAOUkibGtAg2fbYHJwd_oo%2BE7R3dmqs_4FfX0UUwhz7M5jPBeiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/CAGNapEM2PYg-0u1yFkFigx8oByEj_dtmd4Yx3DNsgOaDGYUi%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does abt.exe have a stdout?

Mariano Martinez Peck-2


On Thu, May 23, 2019 at 12:27 PM Richard Sargent <[hidden email]> wrote:
On Thu, May 23, 2019 at 4:44 AM 'Mariano Martinez Peck' via VA Smalltalk <[hidden email]> wrote:


On Tue, May 21, 2019 at 7:43 PM Richard Sargent <[hidden email]> wrote:
When we run abt.exe, it opens the Transcript (at least). But, does the running abt.exe have a stdout and stderr that could be caught and redirected by the command line used to start it?


You confused me hahhaha. You are talking about Windows concept abt.exe  and Unix concepts (stdout/stderr).  

Windows also has stdout and stderr. It's just that GUI applications tend to make no use of them.



Hi Richard, good to know. I learnt something today :)



But notice that you must use TranscriptTTY and not plain Transcript. 

Does this help? 

But, if I call a C library and it writes to stdout, where will it go?



Good question. I really don't have the answer at hand. I guess I would write a simple C lib that outputs to stdout and then make a FFI call from VAST to see what happens. 

Cheers,

--
Mariano Martinez Peck
Software Engineer, Instantiations Inc.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/CAOUkibEMvGLfOaDm33L5C8yjt-KNTq7Vnk9v6n2gs74njaFGBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.