scriptine.shell – call other shell commands

Module Contents

Calling shell commands

scriptine.shell.call(command)

Call command. command should be a list of the executable and all arguments.

>>> call(['some_command', '-v', some_argument]) 
Returns:return code of the command
scriptine.shell.sh(command)

Call command in a new shell. command should be a string with all arguments.

>>> call('some_command -v arg') 
Returns:return code of the command
scriptine.shell.backtick(command)

Call command and return the stdout from the command call as a string.

scriptine.shell.backtick_(command)

Like backtick function, but the command will be called even in dry-run mode.

Table Of Contents

Previous topic

scriptine.path – work with files and directories

This Page