我从网上抓取数据,我有几个进程的我的刮刀并行运行。
我想要每个这些进程的输出结束在同一个文件。只要文本行保持完整,并且不会互相混淆,行的顺序就不重要了。在UNIX中,我可以使用>>管理每个进程的输出到同一个文件。运算符?
不能保证线路保持不变。他们可以混合。
原文链接:https://www.f2er.com/bash/389227.htmlWrite requests of {PIPE_BUF} bytes or less shall not be interleaved with data from other processes doing writes on the same pipe. Writes of greater than {PIPE_BUF} bytes may have data interleaved,on arbitrary boundaries,with writes by other processes,whether or not the O_NONBLOCK flag of the file status flags is set.
因此,长于{PIPE_BUF}字节的行不能保证保持不变。