home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!scifi!acheron!philabs!linus!agate!dog.ee.lbl.gov!lbl.gov!vxwexplo
- From: talarian!brianq@uunet.uu.net (Brian Quigley)
- Newsgroups: comp.os.vxworks
- Subject: Executing shell scripts
- Date: Wed, 27 Jan 93 11:09:16 PST
- Organization: Lawrence Berkeley Laboratory, Berkeley CA
- Lines: 19
- Sender: vxwexplo@lbl.gov
- Message-ID: <9301271909.AA28367@talarian>
- NNTP-Posting-Host: 128.3.112.16
- Originator: daemon@vxw.ee.lbl.gov
-
- I've got a need to execute a shell script from within a program I'm
- working on. I figured I'd copy the startup shell script code since it
- does what I want. Unfortunately, the code that I took from usrConfig.c
- does not behave the same when I put it my code. The script does not execute.
-
- I've tried killing any existing shell before I start the new one. This
- doesn't seem to help. Various messing with ioTaskSetStd,
- shellOrigStdSet, and ioGlobalStdSet produce undesirable results.
-
- Any hints would be appreciated.
-
- Thanks.
-
- (P.S. Hints for a Unix like "system()" call would also be appreciated.)
-
- ---
- Brian Quigley | brianq@talarian.com
- Talarian Corporation | (415)965-8050
-
-