# process.status ## Function Execute the command synchronously and return the exit code. ## Syntax ```bt process(program).status() ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | Int | Returns the process exit code; returns -1 if the exit code cannot be obtained. | ## Example ```bt result = process('cmd').args(['/C', 'exit 0']).status() // Output: 0 print result ``` ## Notes - This method blocks the current process until the child process exits.