Perl and VNC server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl and VNC server
# 1  
Old 03-13-2012
Perl and VNC server

Hi All

I am trying to write a script that a user can use to start a a vncserver on a host and then connect to it, that bit is fine, i can do that using system commands

but i have defined the hosts to use at the top of my scirpt


Code:
my $allowedhosts  = (site_sg() ? 'host2,host1' : 'host3,host4');

which is a little bit of code that we have that checked for site you are in and if you are SG will use host2 and host1 and if not then host3 and hosts4

want i need is a way of when the checking each host and if the a vncserver is already running then going onto the next host in the list until it finds one that a server is not running

hope that makes sense

thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

vnc server fixed resolution

Hello everyone, This is my last resort. I have searched the internet everywhere using different search engines as well. I am using Redhat 7 where I activated a vncserver (since it comes pre-installed). using the following service: Description=Remote desktop service (VNC)... (0 Replies)
Discussion started by: Deyan Broekman
0 Replies

2. Red Hat

vnc to RedHat Server

I'm trying to use VNC from my desktop to connect to a RedHat (RHEL6) Server. I connect but the screen is black. It I go into the Data Centre the screen is unlocked and all is okay there. I can connect no problem to other Desktops & Servers. Is there a setting maybe or can anybody suggest another... (6 Replies)
Discussion started by: itwex
6 Replies

3. Fedora

VNC Client/Server has different display

Hi, I set-up my VNC Server on a Fedora 13 and I have a client on windows. I can access the Fedora PC but when I move the mouse and click on folders, I do not see the Fedora Desktop updating (I don't see the things that I am doing in my client on the Fedora PC) Then, when I do something on... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. UNIX for Dummies Questions & Answers

VNC Server Unauthenticated Access - Nessus

hi guys Suse 10 SP2 Security guys run an app called Nessus for vulnerabilities and they found this one on my linux VNC Server Unauthenticated Access and I really don't know what they mean... I can update vnc on these servers but there is not guarantee this will fix the issue and the... (2 Replies)
Discussion started by: kopper
2 Replies

5. Red Hat

vnc server or x11vnc @ startup

Dear all, I am using Fedora15 kde I have installed Real vnc (server & viewer) real vnc Viewer is working fine - i like this. real vnc server has License period expired problem (i dont know how to add) I have x11vnc server (Desktop sharing) installed - Its working fine too. I... (2 Replies)
Discussion started by: linuxadmin
2 Replies

6. Solaris

vnc server error

I 'm unable to start vnc server, i get following error in the log file Fatal server error: could not open default font 'fixed' xsetroot: unable to open display 'essapl020-u009:0' twm: unable to open display "essapl020-u009:0" xterm Xt error: Can't open display: essapl020-u009:0... (0 Replies)
Discussion started by: fugitive
0 Replies

7. Linux

VNC Server, brings up really basic Xwindows

I am running Startcom linux ES5 . When i bring up the VNC server and login to the machine running a vnc client , I only get the real basic x-windows session and a term window. how can i get it to bring up the real linux desktop on all sessions? Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

8. Solaris

VNC server from the Companion cd. Solaris 8 SPARC

hey. i have been installing the VNC server from the solaris Companion cd under solaris 8 SPARC, when i try to open the vncserver i get: Xvnc is not in your PATH, how do i add it to the PATH ? and how do i install it if i need to do that, thx (0 Replies)
Discussion started by: mads-nielsen
0 Replies

9. AIX

How can I take control the native X server on AIX5.3 via VNC ?

Hello I need to be able to take control of the native X server ( :0.0 ) on AIX5.3 workstations via VNC to be able to assist users...seeing what they are doing is much better than them telling me what they are doing. I know that this can be done on linux so it should doable on AIX. On linux... (0 Replies)
Discussion started by: art
0 Replies

10. Linux

VNC Server http listening port

Hi All, I'm running RH 9.0 on a PII box with 160MB RAM. Just downloaded RealVNC X86 Linux (version 3.3.7). How can I get the HTTP listening port up ? Thanks, KENT (6 Replies)
Discussion started by: kxchen_home
6 Replies
Login or Register to Ask a Question
vncserver(1)							     TightVNC							      vncserver(1)

NAME
vncserver - a wrapper to launch an X server for VNC. SYNOPSIS
vncserver [:display] [-geometry widthxheight] [-depth depth] [-pixelformat rgbNNN|bgrNNN] [-name desktop-name] [ -httpport int ] [ -base- httpport int ] [ -alwaysshared ] [ -nevershared ] [Xvnc-options...] vncserver [ -clean ] -kill :display vncserver -help DESCRIPTION
vncserver is a wrapper script for Xvnc, the free X server for VNC (Virtual Network Computing). It provides all capabilities of a standard X server, but does not connect to a display for itself. Instead, Xvnc creates a virtual desktop you can view or control remotely using a VNC viewer. OPTIONS
You can add Xvnc options at the command line. They will be added to the invocation of Xvnc without changes. The options provided by the vncserver itself are as follows: :display The display number to use. If omitted, the next free display number is used. -geometry widthxheight Set desktop width and height. -depth depth Set the colour depth of the visual to provide, in bits per pixel. Must be a value between 8 and 32. -pixelformat rgbNNN|bgrNNN Set colour format for pixels representation. The viewer can do the conversion to any other pixel format, but it is faster if the depth and pixel format of the server is the same as the equivalent values on the viewer display. -name string This specifies the name of the desktop. -clean This option can be used in conjunction with -kill :display Stops the session running on the specified display. -nevershared Never allow shared desktops. -alwaysshared Always allow shared desktops. -basehttpport int The base http port to use for the java client applet (you have to install the tightvnc-java package to make this work). The real port number will be port = base + display num. -httpport int The http port to use for the java client applet (you have to install the tightvnc-java package to make this work). -help Prints a short usage notice to stderr. EXAMPLES
vncserver Invokes Xvnc on the next available display and with suitable defaults. vncserver :1 Invokes Xvnc on display :1. vncserver -geometry 800x600 -depth 16 :1 Invokes Xvnc on display :1 with desktop size of 800x600 pixels and color depth of 16 bits per pixel. vncserver -kill :1 Shuts down Xvnc server on display :1. SEE ALSO
Xvnc(1), vncviewer(1), vncpasswd(1), vncconnect(1) AUTHORS
Original VNC was developed in AT&T Laboratories Cambridge. TightVNC additions were implemented by Constantin Kaplinsky. Many other people participated in development, testing and support. Man page authors: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>, Tim Waugh <twaugh@redhat.com>, Constantin Kaplinsky <const@tightvnc.com> August 2006 vncserver(1)