

def connectProcess(connection, processProtocol, commandLine='', env={
    
}, usePTY=None, childFDs=None, *args, **kwargs):
    'Opens a SSHSession channel and connects a ProcessProtocol to it\n\n    @param connection: the SSH Connection to open the session channel on\n    @param processProtocol: the ProcessProtocol instance to connect to the process\n    @param commandLine: the command line to execute the process\n    @param env: optional environment variables to set for the process\n    @param usePTY: if set, request a PTY for the process\n    @param childFDs: custom child file descriptors for the process\n    '
    processOpenDeferred = defer.Deferred()
    process = SSHProcess(processProtocol, commandLine, env, usePTY, childFDs, *usePTY, **kwargs)
    process.processOpen = processOpenDeferred.callback
    process.openFailed = processOpenDeferred.errback
    connection.openChannel(process)
    return processOpenDeferred

dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/process.py connectProcess/VarMisuse@62/259 `args`->`usePTY`