home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0016.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  40 lines

  1. Submitted-by: arnold@audiofax.com (Arnold Robbins)
  2.  
  3. >In article <14137@cs.utexas.edu> arnold@audiofax.com writes:
  4. >>     nohup join <(prog1) <(prog2) > joined-output-of-progs-1-and-2 &
  5. >
  6. >> and then log out?  The temporary fifos will still be around when the
  7. >> program finally exits and the shell won't be around to clean them up.
  8.  
  9. In article <14175@cs.utexas.edu> you write:
  10. >Submitted-by: peter@ficc.ferranti.com (Peter da Silva)
  11. >You'd have to nohup the whole thing in either case because you'll clobber
  12. >prog1 and prog2 when you log out. So this is a non-problem.
  13.  
  14. I didn't think about that, but it's still a problem.  Consider:
  15.  
  16.     nohup join <(nohup prog1) <(nohup prog2) > joined-output &
  17.  
  18. I admit to the feasibility of using temporary fifos for process substitution.
  19. It is more work than /dev/fd, but doable.  /dev/fd, though, does make the
  20. whole thing much cleaner.  And it still provides things like
  21.  
  22.     $ ln -s /dev/stdin foo.c
  23.     $ cc foo.c
  24.     main () { printf("hello, world\n");
  25.     ^D
  26.     $ a.out
  27.     hello, world
  28.  
  29. I'm not on a crusade here or anything --- I simply think /dev/fd is a neat
  30. idea and I'd like to see it become commonplace.  I don't know how much more
  31. there is to say on the subject...
  32. -- 
  33. Arnold Robbins                AudioFAX, Inc. | Laundry increases
  34. 2000 Powers Ferry Road, #200 / Marietta, GA. 30067     | exponentially in the
  35. INTERNET: arnold@audiofax.com Phone:   +1 404 933 7612 | number of children.
  36. UUCP:      emory!audfax!arnold Fax-box: +1 404 618 4581 |   -- Miriam Robbins
  37.  
  38. Volume-Number: Volume 22, Number 17
  39.  
  40.