Re: shell() in a separate thread with callback message at exit?

2007-03-12 Thread Joel Guillod
Here is an example script that does a ping. The handler includes the post-processing of the result, but you can just ignore that. function checkPing pIP ... put ping -c1 -npIP into tShellCmd put tFileName 21 after tShellCmd Thank you a lot Sarah. Your code let me discover the

Re: shell() in a separate thread with callback message at exit?

2007-03-11 Thread David Bovill
This is an important feature request - no? I am not sure how to do this - I have suspected you may be able to do this with some clever shell scripting - but not cracked it for things that you need results from. You can put a shell into the background using ie think, and you could look into the

Re: shell() in a separate thread with callback message at exit?

2007-03-11 Thread Sarah Reichelt
On 3/8/07, Joel Guillod [EMAIL PROTECTED] wrote: How can I implement the following features: - invoque a shell command in a separate thread, i.e. a non blocking shell during execution of the command; - receive a callback message with the output and the error result when the thread exits? This

Re: shell() in a separate thread with callback message at exit?

2007-03-10 Thread Joel Guillod
What platforms are you supporting? If it is Mac only then I think you can achieve this using an AppleScript and AppleEvents. Let me know and I'll let you have more details. Yes, I would be very pleased to get the details for MacOSX. Also I need to support this feature under Windows but

shell() in a separate thread with callback message at exit?

2007-03-08 Thread Joel Guillod
How can I implement the following features: - invoque a shell command in a separate thread, i.e. a non blocking shell during execution of the command; - receive a callback message with the output and the error result when the thread exits? This would be some function similar to the load

Re: shell() in a separate thread with callback message at exit?

2007-03-08 Thread Dave
Hi, What platforms are you supporting? If it is Mac only then I think you can achieve this using an AppleScript and AppleEvents. Let me know and I'll let you have more details. All the Best Dave On 8 Mar 2007, at 11:20, Joel Guillod wrote: How can I implement the following features: -