Whoops, I just got back in town and realized I left a big portion of my
xstartup script for VNC off the example if gave earlier.

1. I took the ampersand off the window manager
2. I added vncserver -kill :`echo $DISPLAY |cut -f2 -d: | cut -f1 -d.` (This
is from memory and may not be correct. but it should issue a command similar
to "vncserver -kill :1".

What this does is not process the second line until I exit the window
manager. Then it finds the display number and tells vncserver to kill the
process on that display. Closing my connection to VNC. I guess what I would
like to know is if there are any problems with having the execution of the
xstartup script put on hold until you close the window manager.

If you are wondering why I am trying to do this. I would like to be able to
move from machine to machine, and then kill the process later without having
to telnet to the server. Just a quirk on my part as I would save a few
seconds each time I need to close a server.

Thanks,
Chad

> -----Original Message-----
> From: linda hanigan [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 01, 2000 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Stopping/Starting VNC
>
>
>
> <snip>
> > I tried running a couple of different window managers and a
> couple will do
> > what I am trying to do if you take the ampersand off the end of the
> command,
> > i.e, change "twm &" to "twm"  Then when you kill twm the VNC
> server stops
> as
> > well.  Is this a bad idea?
> >
> .Hi,
> If you kill XVNC it kills the window manager as well no need to change
> the window manager so it doesn't run in the background. Here are my
> instructions for running and killing vnc for my users at work
> To use word perfect or any Xwindows program over the network fro
> your laptop.
> 1. Log on to tent or awning server
> 2. Quit Menu so you have a prompt
> 3. Start vncserver by typing
>    vncserver
>    Note the name and number given to the desktop
> 4. Minimize kermit by clicking on - in upper right hand corner
> 5. Click on VNCviewer icon on desktop
>    Type name for example sun:1 moon:1 Sun:2 ect this will be what
>      vncserver gave you.
>   Cancel any and all attempts to call internet
> 6. Type password
> 7. Do Word Prefect
> 8. Close Wordperfect
> 9. Alt F4 or chose close on vncviewer
>      (upper right hand corner small icon gives menu)
> 10. Maximize kermit
> 11. (Type) ps
> 12 find pid for XVNC
> 13 (type) kill pid
>       The pid is the number shown by ps for xvnc
> 14 (type) ps
>    Should only have bash and ps listed
> 15. Office to get back to menu or exit to log off
> ___________________________________________________________
>
> If you close the telnet session on kermit you will need to type
> ps -user username
> (username is what you type at logon)
> ps without options only shows the processes you started in current session
>
> Hope this helps
>        Linda Hanigan
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to