Re: [PATCH 2/2] tests: kill subprocess from test_ap_acs.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2016-04-24 at 20:23 +0300, Jouni Malinen wrote:
> 
> -        cmd = ["ssh", self.user + "@" + self.host, command]
> +        cmd = ["ssh", self.user + "@" + self.host, ' '.join(command)]

Using

	cmd = ['ssh', self.user + '@' + self.host] + command

should work. This essentially leaves any quotion/unquoting to ssh.

Unfortunately, this really help - ssh uses the (login) shell on the
remote side to execute the commands, and evidently can't be convinced
to do anything else.

johannes

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux