Re: SPAWN result [message #93207 is a reply to message #93206] |
Thu, 12 May 2016 07:15   |
jiashenyue
Messages: 10 Registered: January 2013
|
Junior Member |
|
|
On Thursday, May 12, 2016 at 6:19:24 AM UTC-7, KH wrote:
> Hello,
>
> I have a wget spawn command that runs every night and is terminated in the morning by another program if it has not finished downloading. What I would like to know is how can I tell if the process completed on its own or was terminated. I've tried including RESULT and ERROR in the call, but they both return empty strings.
>
> SPAWN, WGET_CMD, WGET_RESULT, WGET_ERROR
>
> Is there anyway to figure out if this job completed or was terminated? I could check the last line of the log file, but I was hoping there was an easier way.
>
> Thanks,
> Kim
Good question. And this is a major shortcoming of SPAWN. I was always using SPAWN under Mac OS X and I found the only way to track if the session has finished is by looking at the tasks and threads from the Activity Monitor of the system. If you are using Windows, you may have to track it from the Task Manager of the system. SPAWN does not provide any verbose output even if your own program is written in this way.
Not sure if the following link from this group is somewhat helpful but you can give it a try.
CPU Process Manager Library / Parallel Processing
https://groups.google.com/forum/?utm_source=digest&utm_m edium=email#!topic/comp.lang.idl-pvwave/8RTM6eBUhzY
Thanks to Nata, the composer of this library!
Shenyue
|
|
|