Displaying 1 result from an estimated 1 matches for "do_2nd".
Did you mean:
df_end
2010 Jan 13
0
reading fifo with read.table hangs
...bin/bash
mkfifo chops
gawk 'BEGIN {for (i=0;i<8;i++){print i}}' > chops &
R --slave --no-save <<EOF
print ("Hello from R")
con.data <- read.table ("chops")
con.data
EOF
unlink chops
--- SHORT SCRIPT END
--- LONG SCRIPT BEGIN
#!/bin/bash
DO_1st=no
DO_2nd=yes
DO_3rd=yes
# 1 Hoped for this to work but fails
if [[ $DO_1st =~ [yY][eE][sS] ]] ; then
echo "With R 1"
mkfifo chops
gawk 'BEGIN {for (i=0;i<8;i++){print i}}' > chops &
R --slave --no-save <<EOF
print ("Hello from R 1")
con.data <- r...