delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/01/05:05:48

Date: Wed, 1 Oct 1997 11:03:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Laine <laine AT iwn DOT fi>
cc: djgpp AT delorie DOT com
Subject: Re: How to use spawn* / execl?
In-Reply-To: <01bcce73$cb46b1a0$463e64c2@default>
Message-ID: <Pine.SUN.3.91.971001110008.10422F-100000@is>
MIME-Version: 1.0

On 30 Sep 1997, Laine wrote:

> I want to run a dos bat-file from my own c-program that
> I've done using DJGPP. I found in the syntax help in
> Rhide the commands spawn* and execl, but I don't know
> wich of the 6 (I think it was six) different spawn-functions
> should I use, or wich of the exec-functions.

Use either `spawn*' or `system', not `exec*'.

Which of the `spawn*' variety you need, depends on your application (like 
whether your batch file is in the current directory or on the PATH).  
Please read the documentation in the library reference and ask specific 
questions if something there is unclear.

- Raw text -


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