home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!munnari.oz.au!metro!ipso!fawlty!johnmac
- From: johnmac@fawlty.towers.oz.au (John MacLean)
- Subject: Starting UNIX Processes
- Organization: Tower Technology, Sydney
- Date: Tue, 15 Dec 1992 05:59:59 GMT
- Message-ID: <1992Dec15.055959.25530@fawlty.towers.oz.au>
- Sender: johnmac@fawlty.towers.oz.au (John MacLean)
- Lines: 23
-
- A while back, a few people were talking about starting UNIX processes
- (such as mail), from an open client process.
-
- I had a similar requirement recently, and solved it as follows:
-
- Windows programs talked to a Server on an RS/6000.
- When the Windows programs wanted to start a UNIX process, they inserted
- a row into a known table.
-
- A daemon process on the RS/6000 just sat there polling periodically
- looking for any rows in the known table (by using open-client on UNIX).
- When it found a row, it ran the appropriate UNIX process via system(),
- and then deleted the row.
-
- This could just as easily have happened automatically on some condition
- via a trigger.
-
- Hope this helps someone.
- --
- This net: johnmac@fawlty.towers.oz.au Phone: +61 2 427 2999
- That net: uunet!fawlty.towers.oz.au!johnmac Fax: +61 2 427 7072
- Snail: Tower Technology, 1 Apollo Pl, Home: +61 2 449 5930
- Lane Cove, NSW 2066, Australia.
-