fix popen to work with shell

This commit is contained in:
cody burkard
2014-09-27 04:30:16 -07:00
parent cf5bbd597a
commit a565bdd57d
2 changed files with 16 additions and 12 deletions
+1 -2
View File
@@ -60,10 +60,9 @@ def sshd( network, cmd='/usr/sbin/sshd', opts='-D',
connectToRootNS( network, switch, ip, routes )
for host in network.hosts:
host.cmd( cmd + ' ' + opts + '&' )
client = network.switches[ 0 ]
# wait until each host's sshd has started up
for server in network.hosts:
waitListening( client, server, 22, timeout=5 )
waitListening( server=server, port=22, timeout=5 )
print
print "*** Hosts are running sshd at the following addresses:"