home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18542 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  853 b 

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: alias acess
  5. Date: 17 Dec 1992 18:11:07 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 14
  8. Message-ID: <1gqfrrINNgtb@early-bird.think.com>
  9. References: <980@rc1.vub.ac.be>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <980@rc1.vub.ac.be> jcu@dec5.ulb.ac.be (Jean-Christophe Ury) writes:
  13. >I 've  some aliases defined in my shell.I would access these aliases via
  14. >a C program. Is it possible.
  15.  
  16. system("csh -c 'command line'");
  17.  
  18. where "command line" is a shell command line that uses your aliases, should
  19. work.  When the C shell starts up it will source your .cshrc, which will
  20. define the aliases.
  21. -- 
  22. Barry Margolin
  23. System Manager, Thinking Machines Corp.
  24.  
  25. barmar@think.com          {uunet,harvard}!think!barmar
  26.