Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde!uunet!wuarchive!usc!samsung!aplcen!haven!adm!xadmx!AGRISCS@umcvmb.missouri.edu From: AGRISCS@umcvmb.missouri.edu (Don Ingli) Newsgroups: comp.unix.wizards Subject: RE: Calling a c executable from another executable Message-ID: <21646@adm.BRL.MIL> Date: 5 Dec 89 18:36:30 GMT Sender: news@adm.BRL.MIL Lines: 23 Another way is this.... char out[80], arg1[80]; strcpy(arg1,"hello"); sprintf(out,"banner %s",arg1); system(out); ie you can use the system command with the sprintf if you want to pass arguments... system("banner hello"); is the same as the above.. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | DON INGLI | | UNITED STATES DEPARTMENT OF AGRICULTURE - SOIL CONSERVATION SERVICE | | WORK: (314) 875-5344 FAX: (314) 875-5335 | | | | bitnet: agriscs@umcvmb.bitnet internet: agriscs@umcvmb.missouri.edu | | attmail: attmail!attbl!arpa!umcvmb.missouri.edu!agriscs | | | | ALL OPINIONS IN THIS NOTE ARE OF MY OWN AND DO NOT REPRESENT THE | | FEDERAL GOVERNMENT OR THE UNIVERSITY OF MISSOURI-COLUMBIA | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+