pipe

  1. tembun

    Shell How to pipe program output after it has been executed?

    Hi! I wonder if it's possible to do the thing that I've described in the title? Suppose that I have two scripts: foo: #!/bin/sh idx=0 while [ $idx -le 10 ]; do echo $idx idx=$((idx + 1)) sleep 1 done bar: #!/bin/sh while read line; do echo "The pipe received: $line" done...
  2. K

    IPFW ipfw blocks outgoing carp advertisements when using pipe

    I want to rate limit all outgoing traffic. I'm able to do so by following these steps Add the following line to /boot/loader.conf: dummynet_load="YES" Add the following lines to /etc/rc.conf: firewall_enable="YES" firewall_script="/etc/ipfw.rules" The /etc/ipfw.rules file looks like this...
  3. I

    Solved Weird behaviour with piping STDOUT to /dev/null

    Hello, I'm experimenting with data filtering use some of console programs and found weird behaviour with piping STDOUT of GNU grep to /dev/null. File test is 10Gb of data (apache log). $ /usr/bin/time -h ggrep 'GET' test > /dev/null 0,00s real 0,00s user 0,00s sys It seems...
  4. F

    what are other type of data exept files

    What are link, pipe and socket files and how to use them? and what are non-text type of files that I dont know of?
  5. 1

    Bringing back the output of a process back to screen

    After a few days of searching I found this easy way to bring back the output of a process back to screen even if the source terminal is closed. The advantage is that you do not need extra software to manage this. 1. Start the process, write it to a new pipe and send it to the background f.e...
Back
Top