Hello Moritz,
thank you for your suggestions. I will take a look into the various possibilities and will try to check if there is something listening on the rxapi port instead of the pid.
 
The idea with the native IPC mechanism is very nice, but I think it is too early for me to go into details. Step by step ;-) 
 
Many thanks, Klemens
 
Gesendet: Dienstag, 02. Februar 2016 um 10:41 Uhr
Von: "Moritz Hoffmann" <[email protected]>
An: "Open Object Rexx Developer Mailing List" <[email protected]>
Betreff: Re: [Oorexx-devel] ooRexxOnAndroid - startInterpreter method
Just a thought: On Android it would be better to use the native IPC mechanism instead of sockets. That would mean you'd need to define a AIDL service definition, implement the Java code to handle it and use JNI to interface it from C++. Sounds like fun, doesn't it? :-)
Moritz
 
On Tue, Feb 2, 2016 at 10:35 AM Moritz Hoffmann <[email protected]> wrote:
Hi Klemens,
thanks for sharing your efforts with the community! The rxapi daemon uses sockets to communicate with oorexx instances. That means an alternative to using a pid file would be to check if there's something listening on the oorexxapi assigned port. Although that is not 100% safe it should be good enough for a start (another process could listen on that port). It could be that android enforces separation between processes and thus you're not able to see the rxapi daemon. However, open ports should be visible.
 
A quick note on developing oorexx:
  * if coding on Github, it is better to clone our official mirror on https://github.com/ooRexx/ooRexx
  * Do not include the build output in the repo, it will cause complications and adds no benefit
 
Let us know how it goes!
Moritz
 
On Tue, Feb 2, 2016 at 7:32 AM <[email protected]> wrote:
Hello,
 
my project is now hosted on GitHub (https://github.com/KlemensEngel/oorexxforandroid). This repo consists of the oorexx code, a build file, and the build output from my last build.
I am still struggling with the rxapi daemon. I changed the folder where to place the .pid file of the rxapi to /data/local/ because on Android there is no folder /var/run/ (https://github.com/KlemensEngel/oorexxforandroid/commit/3a2c8232008489ecbf54c8ba159b8705abe19650).
As I wrote, my problem is that I cannot see the rxapi deamon running but when I want to start it twice I get the error that the rxapi is already running. Does anyone have an idea what problem can be? 
 
Thanks, Klemens
Gesendet: Donnerstag, 21. Januar 2016 um 12:31 Uhr
Von: [email protected]
An: [email protected]

Betreff: Re: [Oorexx-devel] ooRexxOnAndroid - startInterpreter method
When I start the rxapi manually './rxapi' no error occured. If I want two start it two times I get the correct error message 'Error: There is already a server running.' but when I search for the daemon with 'ps -ef | grep rxapi' I get no result.
I didn't know that this daemon has to be running for executing ooRexx code. With this knowledge I will try, in the first step, to get the rxapi running.
 
My code, respectively the build files, are not publicly availible now. First, I want to try some things and then I will send you the build files.
 
Best regards, Klemens
 
Gesendet: Donnerstag, 21. Januar 2016 um 10:46 Uhr
Von: "Moritz Hoffmann" <[email protected]>
An: "Open Object Rexx Developer Mailing List" <[email protected]>
Betreff: Re: [Oorexx-devel] ooRexxOnAndroid - startInterpreter method
ps -ef | grep rxapi
 
Is your code publicly available? That could help us identifying your issues.
 
Cheers,
Moritz
 
On Thu, Jan 21, 2016 at 10:44 AM <[email protected]> wrote:
Thanks for your reply. Actually it is the case that rexx -v works and rexx -e hangs. Can you tell me how to check if rxapi is started? 
 
Gesendet: Donnerstag, 21. Januar 2016 um 10:16 Uhr
Von: "Erich Steinböck" <[email protected]>

An: "Open Object Rexx Developer Mailing List" <[email protected]>
Betreff: Re: [Oorexx-devel] ooRexxOnAndroid - startInterpreter method
 
nothing happens  and it looks like the interpreter hangs somewhere
I'm seeing this behavior under Windows if the bitness of the started rxapi is different from the rexx interpreter bitness.
If so, rexx -v works, but rexx -e "say 2*2" hangs
 
 
 
Is rxapi started?
 
On Thu, Jan 21, 2016 at 9:52 AM, René Jansen <[email protected]> wrote:
just to verify, you did mean/type:
 
./rexx -e 'say hello world
 
with -e instead of -r ?
 
best regards,
 
René.
 
On 21 jan. 2016, at 09:46, [email protected] wrote:

./rexx -r 'say hello world'

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
 
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to