On Tue, Feb 22, 2005 at 06:03:39PM -0800, Perry Hutchison wrote:
> This feels like an FAQ, but I couldn't find anything there nor in
> the manpage. Maybe I'm not searching for the right keywords :)
>
> How would I set up a menu item to:
>
> pop up a window
> prompt for and read a password
> close the window
> launch a program and feed the password into its stdin
>
> Specifically, I now have something along the lines of:
>
> AddToMenu VNCwindows "VNC" TITLE
> + "sys1" Exec echo pw1 | vncviewer sys1 &
> + "sys2" Exec echo pw2 | vncviewer sys2 &
>
> which works fine as long as the passwords don't change. However,
> there's one system whose VNC password changes depending on whether
> anyone is logged in. Rather than have separate entries for connecting
> to it depending on whether it's idle or I am already logged into it,
> I'd prefer to have a single entry which propmts for the password.
One option would be to ssh into the machine and run vncconnect which
connects back to a vncviewer listening on your machine, then you have
whatever auth methods ssh has which includes public-key auth. There are
some gui programs for public-key auth like ssh-askpass and
ssh-askpass-gnome. There is also a way use use vncpasswd to create a
passwd file that you can pass to vncviewer with -passwd file. You could
probably hack vncpasswd to ask you from a gui window, or just have all
the passwd files prepared ahead of time.
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.
--
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 23 2005 - 01:44:47 GMT