home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / sybase / 491 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!munnari.oz.au!metro!ipso!fawlty!johnmac
  3. From: johnmac@fawlty.towers.oz.au (John MacLean)
  4. Subject: Starting UNIX Processes
  5. Organization: Tower Technology, Sydney
  6. Date: Tue, 15 Dec 1992 05:59:59 GMT
  7. Message-ID: <1992Dec15.055959.25530@fawlty.towers.oz.au>
  8. Sender: johnmac@fawlty.towers.oz.au (John MacLean)
  9. Lines: 23
  10.  
  11. A while back, a few people were talking about starting UNIX processes
  12. (such as mail), from an open client process.
  13.  
  14. I had a similar requirement recently, and solved it as follows:
  15.  
  16. Windows programs talked to a Server on an RS/6000.
  17. When the Windows programs wanted to start a UNIX process, they inserted
  18. a row into a known table.
  19.  
  20. A daemon process on the RS/6000 just sat there polling periodically
  21. looking for any rows in the known table (by using open-client on UNIX).
  22. When it found a row, it ran the appropriate UNIX process via system(),
  23. and then deleted the row.
  24.  
  25. This could just as easily have happened automatically on some condition
  26. via a trigger.
  27.  
  28. Hope this helps someone.
  29. -- 
  30. This net: johnmac@fawlty.towers.oz.au                   Phone: +61 2 427 2999
  31. That net: uunet!fawlty.towers.oz.au!johnmac             Fax:   +61 2 427 7072
  32. Snail:    Tower Technology, 1 Apollo Pl,                Home:  +61 2 449 5930
  33.           Lane Cove, NSW 2066, Australia.
  34.