Re: Newbie question: vncserver running on port :25, need to attach Perl script to this when it executes

Rob Newman <[email protected]>
Newsgroups gmane.network.vnc.user,gmane.network.vnc.realvnc.general
Message-ID <[email protected]>
Hi Phil,

Thanks so much for the reply, however I think I didn't explain my  
problem clearly. The script is already on the same server, I just need  
the Perl script to attach to a display port (localhost:25 in this  
case) when it is run nightly via cron, as the script creates images  
that need an X window to process in. The point of me showing I can  
successfully attach to the port via vncviewer was purely to  
demonstrate that I have everything related to VNC working in a stable  
environment.

After trawling the VNC mailing list archives all day yesterday I saw a  
couple of threads about Xvfb - which might be all I need. However, I  
cannot pass my Perl script a display argument, so I need to somehow  
force the script to use the localhost:25 port. Hence why I had been  
attempting to export the DISPLAY variable in my wrapper script  
(attached again below).



hostname{user}1% cat mywrapper.sh
#!/bin/sh

DISPLAY=localhost:25.0
export DISPLAY

/path/to/myperlscript.pl -args

DISPLAY=localhost:0.0
export DISPLAY



However, it is still not working.

Best regards,
- Rob

> Rob:
>
> Why not just copy the file to the system from which U're running
> vncviewer and run your perl script and gs there?  The data being
> exchanged between the viewer and the server is RFB protocol, not
> PostScript or PDF ... unless U *want* to perl the RFB data, of
> course.
>
> 					Thx, Phil Long

_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.