From 3bf746f0345f4fbea92c22dd072b895fcdc0b937 Mon Sep 17 00:00:00 2001 From: Graeme Humphries Date: Thu, 15 Mar 2012 10:15:16 -0700 Subject: [PATCH] Fixed bug where -l and -p option flags were non-functional. --- crussh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crussh.py b/crussh.py index 0d5f677..bf6eb8b 100755 --- a/crussh.py +++ b/crussh.py @@ -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 ###