Password in command line
Eric Swarthout
eswarthout "at" in-touchmedia.com
Tue, 18 Jul 2000 14:41:53 +0000
Are you running it from the correct directory? It seems to work fine for me
on an NT4 machine. Send along the bat file you are trying to run it from.
Must be something simple.
----- Original Message -----
From: Herng-Jeng Jou <hjjou "at" KachinaTech.COM>
To: <vnc-list "at" uk.research.att.com>
Sent: Tuesday, July 18, 2000 9:04 AM
Subject: RE: Password in command line
> I tried that with "call vncviewer host:port" and I still got the same
> error message:
> Failed to get server address. Did you type the host name correctly?
> when launched from a batch (.bat) file in WinNT 4.0. Manual launch is
> fine and the unix version is fine though. Can anybody reproduce this
> problem on WinNT 4.0? I was wondering if this
> has anything to do with our network setup.
> I tried some debugging, and the command line argument was passed correctly
> into the first object, but got lost somewhere.
>
> Jou
>
> On Mon, 17 Jul 2000, Dennis Shewmaker wrote:
>
> > I don't know if this applies, but the correct way to call an executable
from
> > a batch file is to use the command CALL. It could cause problems
running
> > the exe. As in:
> >
> > call vncviewer host:port
> >
> >
> > > -----Original Message-----
> > > From: Herng-Jeng Jou [mailto:hjjou "at" KachinaTech.COM]
> > > Sent: Monday, July 17, 2000 12:13 PM
> > > To: vnc-list "at" uk.research.att.com
> > > Subject: RE: Password in command line
> > >
> > >
> > > Hello,
> > >
> > > Few weeks ago I grabbed the vnc win viewer source, and
> > > modified it so it
> > > takes the option of passwd in the command line. The
> > > executable works fine
> > > when ran from the command line, but not launched by other programs ...
> > > such as within a batch (.bat) file. Actually the program (even the
> > > original version) doesn't pass the command line arguments
> > > properly WHEN
> > > run, say in a batch file. Has anybody noticed this problem?
> > > For example, if I write a .bat file with
> > > vncviewer host:port
> > > and run the .bat file, the vncviewer can't get connected to
> > > the host while
> > > running from the command manually works fine. I tried both r2 and r7.
> > >
> > > Herng-Jeng Jou
> > >
> > > On Mon, 17 Jul 2000, Steve Bostedor wrote:
> > >
> > > > I knew that you could do it that way, but I was looking for
> > > a more generic
> > > > way of doing it. I would like to make it a feature of
> > > VNCScan to be able to
> > > > put your password in an options box or something, then be
> > > able to double
> > > > click on the computers and have it automagically connect
> > > with no questions
> > > > asked. I suppose that I can still hack a way to do it with
> > > the ini file
> > > > that is created, but it's not as automated as being able to
> > > send it with the
> > > > command line. I'm not sure if the feature is worth the
> > > trouble, but just
> > > > something that I'm looking into.
> > > >
> > > > Thanks
> > > > Steve Bostedor
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: owner-vnc-list "at" uk.research.att.com
> > > > [mailto:owner-vnc-list "at" uk.research.att.com]On Behalf Of Dan
> > > Fulbright
> > > > Sent: Monday, July 17, 2000 10:16 AM
> > > > To: vnc-list "at" uk.research.att.com
> > > > Subject: Re: Password in command line
> > > >
> > > >
> > > > > How would I pass the password to an VNC Viewer through a
> > > command line?
> > > > > The goal is to eliminate the window asking for a password.
> > > >
> > > > I'm guessing you're using the Windows VNC viewer. Connect
> > > to the server,
> > > > enter your password, then click on the control menu (the
> > > VNC icon in the
> > > > extreme upper left hand side of the viewer) and click on
> > > "Save connection
> > > > info as..." It will ask you if you want to save the
> > > password in the file.
> > > > Say yes. Then, go to a command prompt, switch to the VNC
> > > installation
> > > > directory and type:
> > > >
> > > > vncviewer -register
> > > >
> > > > This tells Windows that you want vncviewer.exe to handle
> > > files with the
> > > > extension .vnc. (Suggestion to the VNC development team: make this
> > > > something that happens automatically during installation)
> > > You only have to
> > > > do the above steps once. Now, you can simply double click
> > > on the file
> > > > that was created in the "Save connection info as..." step above.
> > > >
> > > > Dan Fulbright
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, send a message with the line: unsubscribe vnc-list
> > > > to majordomo "at" uk.research.att.com
> > > > See also: http://www.uk.research.att.com/vnc/intouch.html
> > > >
> > > ---------------------------------------------------------------------
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, send a message with the line: unsubscribe vnc-list
> > > > to majordomo "at" uk.research.att.com
> > > > See also: http://www.uk.research.att.com/vnc/intouch.html
> > > >
> > > ---------------------------------------------------------------------
> > > ---------------------------------------------------------------------
> > > To unsubscribe, send a message with the line: unsubscribe vnc-list
> > > to majordomo "at" uk.research.att.com
> > > See also: http://www.uk.research.att.com/vnc/intouch.html
> > > ---------------------------------------------------------------------
> > ---------------------------------------------------------------------
> > To unsubscribe, send a message with the line: unsubscribe vnc-list
> > to majordomo "at" uk.research.att.com
> > See also: http://www.uk.research.att.com/vnc/intouch.html
> > ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo "at" uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------