Revision e953444f mininet/node.py

View differences:

mininet/node.py
134 134
        """Send a command, followed by a command to echo a sentinel,
135 135
           and return without waiting for the command to complete."""
136 136
        assert not self.waiting
137
        if isinstance( cmd, list ):
138
            cmd = ' '.join( cmd )
137 139
        if cmd[ -1 ] == '&':
138 140
            separator = '&'
139 141
            cmd = cmd[ :-1 ]
140 142
        else:
141 143
            separator = ';'
142
        if isinstance( cmd, list ):
143
            cmd = ' '.join( cmd )
144 144
        self.write( cmd + separator + ' echo -n "\\0177" \n' )
145 145
        self.waiting = True
146 146

  

Also available in: Unified diff