Fixed bug where -l and -p option flags were non-functional.

This commit is contained in:
Graeme Humphries 2012-03-15 10:15:16 -07:00
parent a438c4b43b
commit 3bf746f034

View File

@ -49,9 +49,9 @@ for host in args.hosts:
TermMinHeight = (terminal.get_char_height() * 24) + terminal.get_padding()[1]
# TODO: disable only this terminal widget on child exit
# v.connect("child-exited", lambda term: gtk.main_quit())
cmd = "/usr/bin/ssh"
cmd_args = ["-l '" + args.login + "'", "-p " + str(args.port), host]
terminal.fork_command(cmd, cmd_args)
cmd_str = "/usr/bin/ssh -l " + args.login + " -p " + str(args.port) + " " + host
cmd = cmd_str.split(' ')
terminal.fork_command(command=cmd[0], argv=cmd)
Terminals[host] = terminal
### Utility Functions and Vars ###