首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

知名管道 pipe fifo

2012-08-07 
有名管道 pipe fifo两个终端运行,一个输入,一个输出#!/bin/shif [ ! -p /root/mytest/testpipe ]then/bin/

有名管道 pipe fifo
两个终端运行,一个输入,一个输出

#!/bin/shif [ ! -p /root/mytest/testpipe ]then    /bin/mknod /root/mytest/testpipe pfiwhile :do    read msg    if [ "$msg" = "" ]    then        continue    else        echo "$msg"    fidone < /root/mytest/testpipe


#!/bin/shtty=`who am i | awk '{print $2}'`#tty=pts/3while :do    echo "enter your name: \c" >/dev/$tty    read name    echo "$name haha"done > /root/mytest/testpipe


热点排行