home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5366 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Xref: sparky comp.unix.programmer:5366 comp.lang.c:16824
  2. Newsgroups: comp.unix.programmer,comp.lang.c
  3. Path: sparky!uunet!wupost!darwin.sura.net!news.duc.auburn.edu!peking!swanger
  4. From: swanger@accs.duc.auburn.edu (David Swanger)
  5. Subject: How do you shell out of a C program
  6. Message-ID: <1992Nov19.214220.2817@news.duc.auburn.edu>
  7. Sender: usenet@news.duc.auburn.edu (News Account)
  8. Nntp-Posting-Host: peking.duc.auburn.edu
  9. Reply-To: swanger@accs.duc.auburn.edu
  10. Organization: Auburn University, AL
  11. Date: Thu, 19 Nov 1992 21:42:20 GMT
  12. Lines: 19
  13.  
  14.  
  15. I am writing a C program for my SUN IPC Workstation, SunOs 4.1.2,
  16. and would like to be able to shell in and out of the program.  My
  17. program uses curses (Sys V).  I tried the following command:
  18.  
  19. system("/bin/csh");
  20.  
  21. When the program reached this point, it seemed to shell out (I saw
  22. the prompt), but the terminal froze up.  Obviously I am missing
  23. something with either C or curses or system() or something.  I
  24. would really appreciate some help with this.
  25.  
  26. Thanks in advance (and sorry if I posted to the wrong group).
  27.  
  28.  
  29. David Swanger
  30. Academic Computing Services
  31. Auburn University, AL
  32. swanger@accs.duc.auburn.edu
  33.