delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/23/21:15:25

Message-ID: <365A155D.3DB@tisd.net>
Date: Mon, 23 Nov 1998 20:09:33 -0600
From: Scott Guilbeaux <guilbeau AT tisd DOT net>
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getting started
References: <73cifb$gqm$1 AT clam DOT niwa DOT cri DOT nz>
NNTP-Posting-Host: 207.243.122.137
X-Trace: 23 Nov 1998 21:09:45 -0600, 207.243.122.137
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In response to your second question >>
Here's a little program that will spawn another program

#include <unistd.h>

int main(void)
{
   execlp("progname", "progname", "param1", "param2", "param3", 0);
}

You can use as many or few parameters as you want.
I'm sure there are better ways to do it.  But that's what I use to run
Java programs without having to open a prompt and typing the interpret
command line.

Scott G.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019