Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!usc!apple!portal!analog2!gandhi!ambarish From: ambarish@gandhi.UUCP (Ambarish Malpani) Newsgroups: comp.unix.questions Subject: Re: How to issue a C SHELL command within a C program Message-ID: <494@gandhi.UUCP> Date: 15 Aug 90 18:23:15 GMT References: <25279.26c7fd35@kuhub.cc.ukans.edu> Reply-To: ambarish@gandhi.UUCP (Ambarish Malpani) Organization: Valid Logic Systems Inc., San Jose, CA. Lines: 16 In article <25279.26c7fd35@kuhub.cc.ukans.edu> jian@kuhub.cc.ukans.edu writes: >How can I issue a statment that executes a C SHELL command within a C program? >I would appreciate any helps. > >Jian Q. Li >jian@kuhub.cc.ukans.edu Try using the system() library routine eg. system("pwd"); Ambarish sun!valid!ambarish