home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5042 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!nwnexus!Celestial.COM!ray
  3. From: ray@Celestial.COM (Ray Jones)
  4. Subject: Re: Communicating with background processes
  5. Organization: Celestial Software, Mercer Island, WA
  6. Date: Sat, 12 Dec 1992 01:22:40 GMT
  7. Message-ID: <1992Dec12.012240.10594@Celestial.COM>
  8. References: <richard.723718447@dutepp6>
  9. Lines: 21
  10.  
  11. In <richard.723718447@dutepp6> Richard.Kooijman@dnpap.et.tudelft.nl (Richard Kooijman) writes:
  12.  
  13. >Is it possible to communicate with background processes in sh, csh or ksh?
  14.  
  15. >This is what I would like to do: start up a program in the background
  16. >that reads and writes to standard in and out, communicate with
  17. >this program through some other file descriptors.
  18. [stuff deleted]
  19. >I want to use the program spook as a kind of daemon. I now know that the
  20. >above program simply can't work, but I placed it here to illustrate what
  21. >I want.
  22.  
  23. I have not tried it with file descriptors, but have used an ordinary file
  24. for this purpose.  I have a program that continues to run (ringing the bell)
  25. until a file (/tmp/x) content changes from one value to another.
  26. Crude, but it works.
  27. -- 
  28. INTERNET:  ray@Celestial.COM   Ray A. Jones; Celestial Software
  29. UUCP:   ...!thebes!camco!ray   6641 East Mercer Way
  30.              uunet!camco!ray   Mercer Island, WA 98040; (206) 947-5591
  31. The probability of one or more spelling errors in this missive approaches
  32.