Today I use this code:

...
cStrExec = "HOME=/home/" + cUsrNam + "; USER=" + cUsrNam + ";
SHELL=/bin/bash ; DISPLAY=" + cDisplay + " ; run-exe.sh " + <params> +
"&"
...
run( cStrExec )
...

I'd like to replace it with:

HB_EXECVP( "run-exe.sh", <params> )

but I've seen that execve accepts also an array for envvars.

Is it correct to say that in this case it could be useful?

Are there better/safer solution to launch Harbour binary apps from an
Harbour application server?

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to