Article View: comp.unix.programmer
Article #51Re: How to execute unix commands from a c-program
From: neal.l.leitner
Date: Wed, 04 Nov 1992 16:35
Date: Wed, 04 Nov 1992 16:35
27 lines
988 bytes
988 bytes
From article <1992Nov4.153029.21837@cs.ruu.nl>, by hpverwei@cs.ruu.nl (Dick Verweij):
> See subject,
>
> --
> DICK H.P. VERWEIJ
>
> --------------------------------------------------------------------------------
> D:-) I:-) C:-) K:-) email : hpverwei@cs.ruu.nl
main()
{
.
.
.
system("ls -l");
}
or
main()
{
char mystring[10];
.
.
.
strcpy(mystring,"ls -l");
system(mystring);
}
Technical Details
Message-ID:
<1992Nov4.163532.8801@cbfsb.cb.att.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!cbnewsb.cb.att.com!nllReferences:
<1992Nov4.153029.21837@cs.ruu.nl>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!cbnewsb.cb.att.com!nll From: nll@cbnewsb.cb.att.com (neal.l.leitner) Subject: Re: How to execute unix commands from a c-program Message-ID: <1992Nov4.163532.8801@cbfsb.cb.att.com> Sender: news@cbfsb.cb.att.com Organization: AT&T References: <1992Nov4.153029.21837@cs.ruu.nl> Date: Wed, 4 Nov 1992 16:35:32 GMT Lines: 27