home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vxworks / 1247 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.1 KB

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