Change Environment Variables
If you wish to change the environment variables, you can provide a new set directly in exec*()
members, or by using setenv()
.
Remember to set the overwrite flag to 1 in order to apply new configuration to existing variable!
You will get No Command found...
because we hide shutdown
from execvp
by excluding the /sbin
from PATH
, in which programs find available commands to execute.
Last updated
Was this helpful?