Using environment variables instead of forking a command