metaclass: (Default)
[personal profile] metaclass
Люди, а скажите мне - через | (пайп) БИНАРНЫЕ данные проходят?
Особо интересует - на линуксе и на винде. Про первое я знаю, что проходят, т.к. arecord | aplay работает, а вот про второе уже 10 лет мучаюсь, но никак руки не дойдут проверить :)

Date: 2012-06-27 07:00 am (UTC)
abbra: (Default)
From: [personal profile] abbra
Глупый вопрос -- глупый ответ: http://msdn.microsoft.com/en-us/library/aa365605.aspx

Date: 2012-06-27 07:05 am (UTC)
From: [identity profile] metaclass.livejournal.com
Это совершенно другое.
Я про перенаправление stdout одного процесса в stdin другого.

Date: 2012-06-27 07:28 am (UTC)
abbra: (Default)
From: [personal profile] abbra
На самом деле из-за отсутствия единообразия в представлении разных каналов в Windows и возникают такие вопросы. Но ответ там же: http://msdn.microsoft.com/en-us/library/tw4k6df8%28v=vs.80%29.aspx
"_setmode is typically used to modify the default translation mode of stdin and stdout, but you can use it on any file. If you apply _setmode to the file descriptor for a stream, call _setmode before performing any input or output operations on the stream."

Profile

metaclass: (Default)
metaclass

April 2017

S M T W T F S
      1
2345678
9101112 131415
16171819202122
23242526272829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 13th, 2025 10:40 pm
Powered by Dreamwidth Studios