News for hackers. Stuff that matters.
Re:Unix is not an acceptable Unix by useerup on Sunday June 07, 2015 @11:19AM (#9674962)

    irm myrouter {ls c:\logs | ? length -gt 50kb}
This will emit "deserialized" objects from myrouter. PowerShell remoting works across machine boundaries by defining an xml based format for serializing and deserializing objects.

During serialization, all properties are serialized, recursively to a configured max depth. The local client will see the deserialized objects - ie they are not "live" any more.

Note that the PS team recently announced that they would support SSH as a remoting mechanism. I suspect that they will still send CliXML objects when using powershell to powershell communication.

Powershell uses an industry standard for http based remote commands. It should be adaptable to SSH.

Re:Unix is not an acceptable Unix by geofft on Sunday June 07, 2015 @01:49PM (#9675612)
Or `irm myrouter {ls c:\logs} | ? length -gt 50kb` to match the original example, right?

Serializing structured data is a pretty solved problem, and I wonder if decades of UNIX going out of its way to screw this up is confusing the parent poster. XML is certainly a way to do it that works just fine, but there are a million others. None of them require awk or counting spaces.

Re:Unix is not an acceptable Unix by useerup on Sunday June 07, 2015 @02:05PM (#9675691)
You're right. And I also screwed up "irm". It should have been "icm". Apologies.