# Process API - [API reference](https://docs.qualcomm.com/doc/80-41102-2/topic/_doxygen_rst_file__doxygen_sources_include_le_process_h.html#file-le-process-h) This API provides a means to spawn external processes. The function [le\_proc\_Execute()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00095_1a75b0bc4101d9c6eb62f9bf9a7ffb6b71.html#Documentationa00095_1a75b0bc4101d9c6eb62f9bf9a7ffb6b71) takes a structure which is populated with the execution parameters and handles the heavy lifting of (on Linux) forking and execing as necessary. int status; le_proc_Parameters_t proc = { .executableStr = "/bin/ls", .argumentsPtr = { "/bin/ls", "/tmp", NULL }, .environmentPtr = NULL, .detach = false, .closeFds = LE_PROC_NO_FDS, .init = NULL, .userPtr = NULL }; pid_t pid = le_proc_Execute(&proc); if (pid < 0) { LE_FATAL("Oh no! Something went wrong (error %d).", errno); } if (waitpid(pid, &status, 0) > 0) { LE_INFO("%s[%d] returned %d", proc.executableStr, (int) pid, status); } Copy to clipboard Copyright (C) Sierra Wireless Inc. Last Published: Jul 29, 2026 [Previous Topic Print APIs](https://docs.qualcomm.com/bundle/publicresource/80-41102-2/topics/print.md) [Next Topic Red/Black Tree API](https://docs.qualcomm.com/bundle/publicresource/80-41102-2/topics/red_black_tree.md)