News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
sys.spawn / sys.pid question
Author Message
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
RE: sys.spawn / sys.pid question

znarf Wrote:
Hello all,

I'm currently trying to run an external console application as a background job started from a murgaLua script using the features provided by the luasys package in murgaLua 0.6.8.
I did not yet succeed in checking the status of a spawned process. I did the following:

local pid = sys.pid()
sys.spawn(app, nil, pid)

now I miss something like pid:status() which I could loop over in order to determine the present process status.

Any idea how to do this would be warmly welcome.

Thanks and regards,
Gerald



Second that... some docs on the whole lua-sys thing would be nice... I really can't deduce the whole workings just from the example files.

Thx
PS: tried 'return pid' maybe that returns something usefull?

05-22-2008 02:51 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
sys.spawn / sys.pid question - znarf - 05-20-2008, 08:15 PM
RE: sys.spawn / sys.pid question - mikshaw - 05-21-2008, 10:00 PM
RE: sys.spawn / sys.pid question - jpjacobs - 05-22-2008 02:51 AM
RE: sys.spawn / sys.pid question - mikshaw - 05-25-2008, 01:12 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: