On 10/28/2016 10:41 AM, John Kasunich wrote:
>
> On Fri, Oct 28, 2016, at 11:26 AM, Jim Craig wrote:
>> On 10/28/2016 10:02 AM, John Kasunich wrote:
>>> On Fri, Oct 28, 2016, at 10:29 AM, Jim Craig wrote:
>> No, it is not using the -s option. However it does not appear that it
>> will fix the issue either. Below is a snippet of the component
>> information section
> Is this snippet the format generated by -s?
> (I don't have access to a Linux box at the moment.)
Yes, this was generated with the -s option.
>
>>       27  User  halcmd12604                                     12604 ready
>>       25  User  axisui                                          12542 ready
>>       23  User  inihal                                          12539 ready
>>       22  RT    match8 ready
>>       21  RT    wcomp ready
>>       20  RT    comp ready
>>       19  RT    or2 ready
>>       18  User  hal_manualtoolchange                            12523 ready
>>       16  RT    near ready
>>       15  RT    lowpass ready
>>       14  RT    limit2 ready
>>       13  RT    sim_spindle ready
>>       12  RT    hypot ready
>>       11  RT    ddt ready
>>       10  RT    __servo-thread ready
>>        9  RT    motmod ready
>>        8  RT    trivkins ready
>>        7  User  halui                                           12503 ready
>>        5  User  iocontrol                                       12501 ready
>>
>> As you can see the PID column does not always have a value. So splitting
>> the line will result in 4 variable lines and 5 variable lines.
> It seems like the 4 variable lines always have "RT" in column 2, and
> the 5 variable ones always have "User" in column 2.  So the parser could
> read columns 1-3, then test the value in column 2 before reading either
> one or two more columns...
>
> Or halcmd -s could be patched to output "-" or "N/A" or "kernel" for
> the PID of RT components.
I will tinker with the parsing code tonight. Maybe I can make it work 
without any modifications to halcmd.


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to