On 9/7/18 7:19 AM, Bernhard Voelker wrote:
On 09/07/18 06:37, Barath Aron wrote:
Alternatively, one could direct the spawned process to run a program
that would set the working directory to, say, the first argument, and
then use the remaining arguments to run/fork/spawn the target program.
Do you know systems that have this program? What is the name of this
utility program?
E.g. env(1) from GNU coreutils >= 8.28 (now: 8.30) has:

   env --help | grep DIR
     -C, --chdir=DIR      change working directory to DIR

Have a nice day,
Berny



Of course. (facepalm) Thanks.

Any thoughts on posix_spawn()?

Aron


Reply via email to