nested escape chars in a shell command

Eli Criffield elicriffield at gmail.com
Thu Oct 20 16:53:46 EDT 2005


I can't seem to get that to work either.

child =
pexpect.spawn('/bin/sh',args=['-c','/usr/bin/ssh','-t','-o','StrictHostKeyChecking
no',host,command,'|','awk','{print %s:$0}'%host], timeout=30)

Complains its getting the wrong arguments to ssh.

Eli




More information about the Python-list mailing list