Discussion:
interprocess communications in Native Oberon
(too old to reply)
noch
2007-02-05 15:45:35 UTC
Permalink
Hello.
I am using Native Oberon on a bare PC and writing some software for
it.
As far as I understood IPC is implemented on Hermes Oberon System, but
not present in Native Oberon.
Any ideas how to run one command from another (something like execv*
family functions), read output from one program(which appear in the
System.Log) by another program (something like pipes)?
If such a thing could not be implemented without Oberon low level
modules modernization, then could you please point me some direction
Thanks

Norayr Chilingaryan
noch
2007-02-06 08:38:19 UTC
Permalink
Post by noch
Any ideas how to run one command from another (something like execv*
family functions),
I know how to import module and call a procedure from it, just want to
know is there anticipated way to to do.
read output from one program(which appear in the
Post by noch
System.Log) by another program (something like pipes)?
Besides, is is possible to read output of a command which have been
written it in a new viewer?
Thanks
noch
2007-02-09 15:34:18 UTC
Permalink
Post by noch
Post by noch
Any ideas how to run one command from another (something like execv*
family functions),
I know how to import module and call a procedure from it, just want to
know is there anticipated way to to do.
read output from one program(which appear in the> System.Log) by another program (something like pipes)?
Besides, is is possible to read output of a command which have been
written it in a new viewer?
Thanks
OK, I can use Oberon.Log which is Texts.Text, but anyone have ide how
to read information from exact viewer?
Thanks
Chris Burrows
2007-02-09 23:59:16 UTC
Permalink
Post by noch
OK, I can use Oberon.Log which is Texts.Text, but anyone have ide how
to read information from exact viewer?
Try asking your question in the ETH mailing list - most of the Native Oberon
experts seem to monitor that rather than this newsgroup

https://lists.inf.ethz.ch/mailman/listinfo/oberon

--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
August Karlstrom
2007-02-10 17:12:43 UTC
Permalink
Post by Chris Burrows
Post by noch
OK, I can use Oberon.Log which is Texts.Text, but anyone have ide how
to read information from exact viewer?
Try asking your question in the ETH mailing list - most of the Native Oberon
experts seem to monitor that rather than this newsgroup
https://lists.inf.ethz.ch/mailman/listinfo/oberon
I agree -- after all, this is comp *lang* oberon.


August
n***@absamail.co.za
2007-02-13 08:57:10 UTC
Permalink
Post by noch
Post by noch
OK, I can use Oberon.Log which is Texts.Text, but anyone have ide how
to read information from exact viewer?
Try to make exact/structured statements and questions.
What do you mean 'use Oberon.Log' ?
You can read read the Oberon.Log Frame, to get information.

Try to keep a 'clean/maintained' news-thread.
Did you previously write that you were using Native Oberon ?
Post by noch
Any ideas how to run one command from another (something like execv*
family functions),
I know how to import module and call a procedure from it, just want to
know is there anticipated way to to do.
read output from one program(which appear in the
System.Log) by another program (something like pipes)?
Besides, is is possible to read output of a command which have been
written it in a new viewer?
OK, to read the output of programA, with programB you could perhaps
write to the System.Log frame, and then 'mark' it [see eg. ET.Marker <args>],
and then <read/scan text from the 'marked reader'>.
Or write to a 'named' TextFrame and read from this named TextFrame.

I think you could even do this with a ET.Do script.
But piping data from one ap. to the next via textFrames could be
problematic, because you can't always predict the state of the
text frames at the run time.
Ie. it depends on the pre-run textFrameTree state.
Have you read via: ET.Open ETGuide.Text
about "ET.Marker save spec [spec = user | system]" ..etc?

Alternatively you would pipe via a file ?

Using successive refinement, ie. starting from the simplest - perhaps:
1. Out.Int/String..etc // to write to System.Log
2. ET.Marker <the System.Log which is clear/available -- 2-co-ords>
{perhaps use ET.* to clear other text from System.Log before writing}
3. Initialise the Reader or Scanner and get the 'piped data'.
Post by noch
Try asking your question in the ETH mailing list - most of the Native Oberon
experts seem to monitor that rather than this newsgroup
https://lists.inf.ethz.ch/mailman/listinfo/oberon
That seems to be mostly for people who are beta testing the
descendant[s] of oberon ?

== Chris Glur.
Chris Burrows
2007-02-13 09:53:38 UTC
Permalink
Post by n***@absamail.co.za
Post by Chris Burrows
Try asking your question in the ETH mailing list - most of the Native Oberon
experts seem to monitor that rather than this newsgroup
https://lists.inf.ethz.ch/mailman/listinfo/oberon
That seems to be mostly for people who are beta testing the
descendant[s] of oberon ?
Quote from the above URL: "This mailing list is for discussion of ETH Oberon
and related systems such as the Aos kernel and the Bluebottle system".

It wouldn't be a surprise to me if there were more messages related to the
more recent, less stable descendants, as there are probably more questions
to be asked, but that shouldn't be a deterrent to ask other ETH
Oberon-related questions there.

Recent expereince here has shown me that the mailing list has a significant
advantage over this newsgroup in that it is moderated and thus spam-free.

--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp

Loading...