Shell
Last updated
Last updated
Cement includes a with helpers for common tasks related to executing commands, spawning subprocesses/threads, and other tasks.
API References:
Requesting input from the user is straight forward, however we've included the utility to expand beyond just a simple one-dimensional input response.
Shell commands can be executed via the shell.cmd()
function in two ways; by capturing STDOUT/STDERR and exit code, or just the exit code and letting STDOUT/STDERR print to console normally.
Spawning processes and threads is easy via the shell.spawn()
helper.
See the and modules in the Python standard library for more information on working with processes and threads.