Displaying 1 result from an estimated 1 matches for "fifo2".
Did you mean:
fifo
2014 Jan 10
0
R strange behaviour when working with fifos
...ts
the input stream of a process and the other one the output of the same
process. The problem is that R behaves very different when running the
commands directly in the interpreter than when running via a script file.
Here is the script
#! /usr/bin/Rscript --vanilla
# The fifos (fifo1 and fifo2) were previously created
# in Linux with mkfifo
# First we open fifo2 for reading:
cc2 <- fifo("fifo2", "r+")
# We launch a process just to count lines, words and chars,
# with fifo1 as its input and fifo2 as its output, the
# process won't wait:...