Discussion:
Automate Screenshot
Steffen Meisel
2004-02-17 19:50:01 UTC
Permalink
Hi,
is there a program which can make a screenshot of a machine which is
running vnc server and do this every hour?
I mean without connecting and making the screenshot manually.
Thanx
Steven
Grant McDorman
2004-02-17 21:11:01 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

vncsnapshot (vncsnapshot.sourceforge.net) - me own creation - can be run
from the command line (i.e. a batch file under Windows, a shell script
under Unix).
Seak, Teng-Fong
2004-02-17 21:53:01 UTC
Permalink
Very nice. Have you any plan to support other formats like PNG or GIF (oops) ?

If I'm not mistaken, your vncsnapshot acts like a client and thus can be run on any PC, right?

OTOH, it's not written, but I suppose that when it is used for remote, it's always in "listen" mode so as not to disturb any existing session, right ? But why for local it isn't in "listen" ?
-----Message d'origine-----
Envoyi : mardi 17 fivrier 2004 16:09
@ : Steffen Meisel; VNC-***@realvnc.com
Objet : Re: Automate Screenshot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
vncsnapshot (vncsnapshot.sourceforge.net) - me own creation - can be run
from the command line (i.e. a batch file under Windows, a shell script
under Unix).
Grant McDorman
2004-02-17 22:41:01 UTC
Permalink
Seak, Teng-Fong wrote:

| Very nice. Have you any plan to support other formats like PNG or
GIF (oops) ?

I have no plans currently to support other formats. At the moment, if
you want another format, you can use a command line tool such as the
fine (and free) ImageMagick tools (www.imagemagick.org) to convert to
those formats, among many others.

|
| If I'm not mistaken, your vncsnapshot acts like a client and thus can
be run on any PC, right?

Absolutely. It can be run on any platform it can be compiled on, as a
matter of fact.


| OTOH, it's not written, but I suppose that when it is used for
remote, it's always in "listen" mode so as not to disturb any existing
session, right ? But why for local it isn't in "listen" ?

It connects *once* as a shared session, grabs the screen, and then
disconnects.

Listen mode is separate from disturbing existing sessions; with all VNC
clients, listen mode allows the server to initiate the connection,
instead of the viewer (useful for security and firewalls). This mode
otherwise behaves just like normal sessions; i.e. if the viewer is not
requesting a shared session it'll disconnect any existing sessions.

Note, by the way, that most VNC servers have an option to reject shared
sessions when a viewer is already connected; while useful for security,
this will break vncsnapshot.

- --

Grant McDorman <***@cedara.com>, Sr. Software Design Consultant
Cedara Software Corp. <URL:http://www.cedara.com>
~ (formerly I.S.G. Technologies Inc.)
Mississauga, Ontario, Canada

Loading...