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