Use the FQDN for xvm-remote instead of an unqualified name.
authorEvan Broder <broder@mit.edu>
Thu, 5 Feb 2009 08:19:32 +0000 (03:19 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 5 Feb 2009 08:19:32 +0000 (03:19 -0500)
svn path=/trunk/scripts/vnc-client/; revision=2096

invirt-vnc-client

index ad5cce2..63d3999 100755 (executable)
@@ -159,12 +159,12 @@ def main():
             sys.exit(2)
         from subprocess import PIPE, Popen
         try:
             sys.exit(2)
         from subprocess import PIPE, Popen
         try:
-            p = Popen(["remctl", "remote", "control", args[0], "vnctoken"],
+            p = Popen(["remctl", "xvm-remote.mit.edu", "control", args[0], "vnctoken"],
                       stdout=PIPE)
         except OSError:
             if verbose: print "remctl not found in path. Trying remctl locker."
             p = Popen(["athrun", "remctl", "remctl",
                       stdout=PIPE)
         except OSError:
             if verbose: print "remctl not found in path. Trying remctl locker."
             p = Popen(["athrun", "remctl", "remctl",
-                       "remote", "control", args[0], "vnctoken"],
+                       "xvm-remote.mit.edu", "control", args[0], "vnctoken"],
                       stdout=PIPE)
         authtoken = p.communicate()[0]
         if p.returncode != 0:
                       stdout=PIPE)
         authtoken = p.communicate()[0]
         if p.returncode != 0: