You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

pipe-watcher 186B

3 years ago
3 years ago
12345678910111213141516
  1. #!/usr/bin/fish
  2. set pipe $argv[1]
  3. if test (count $argv) -ge 2
  4. echo $argv[2]
  5. end
  6. if [ ! -p $pipe ]
  7. echo named pipe $pipe not found
  8. exit 1
  9. end
  10. while [ -p $pipe ]
  11. cat $pipe
  12. end