Differences between revisions 2 and 8 (spanning 6 versions)
Revision 2 as of 2008-12-30 05:35:58
Size: 820
Editor: YoichiAso
Comment:
Revision 8 as of 2012-01-03 23:02:43
Size: 1561
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from statScreen
## page was renamed from captureScreen.sh
= Overview =
This script takes snapshots of MEDM screens by opening them up in a virtual X display and using a screen capture utility.
It then makes PNG thumbnails and builds a web page of these so that they can be viewed from off site.
A cronjob reruns the image capture and web posting several times per hour.

All of the scripts are living in /cvs/cds/project/statScreen/.
Line 2: Line 11:
/cvs/cds/caltech/statScreen/bin/captureScreen.sh takes a screen shot of an X application
and saves the image to /cvs/cds/caltech/statScreen/images/.
This script does '''not''' require a physical display.
''statScreen/bin/captureScreen.sh'' takes a screen shot of an X application and saves the image to ''statScreen/images/''.
This script does '''not''' require a physical display. Instead it uses 'Xvfb' (Xwindows Virtual Frame Buffer) to make a
virtual display called :5 (which will cause problems if we ever use 6 monitors on mafalda). MEDM is then told to open its
display on :5. Then the ImageMagik utility 'import' is told to capture the :5 display and save it as a PNG.
Line 6: Line 16:
For MEDM screens, there is a wrapper script grabMEDMScreens.sh.
It takes a list of *.adl files as an argument and capture the images of those screens.
For the MEDM screens, there is a wrapper script ''grabMEDMScreens.sh'' which is what the cronjob actually runs.
It takes a list of .adl files as an argument and captures the images of those screens.
Line 9: Line 19:
A cron job runs on nodus calling the above scripts.
The cron actually runs cronjob.sh, which calls
grabMEDMScreens.sh with  /cvs/cds/caltech/statScreen/etc/medmScreens.txt
as the argument. This job will generate images in /cvs/cds/caltech/statScreen/images/.
To change/add MEDM screens to be captured, modify /cvs/cds/caltech/statScreen/etc/medmScreens.txt
The crontab on mafalda is setup to run the file 'statScreen/bin/cronjob.sh' calls ''grabMEDMScreens.sh'' with
''
statScreen/etc/medmScreens.txt''as the argument.
This job will generate images in ''statScreen/images/''.

'''
To change/add MEDM screens to be captured, modify ''statScreen/etc/medmScreens.txt'''''.

Overview

This script takes snapshots of MEDM screens by opening them up in a virtual X display and using a screen capture utility. It then makes PNG thumbnails and builds a web page of these so that they can be viewed from off site. A cronjob reruns the image capture and web posting several times per hour.

All of the scripts are living in /cvs/cds/project/statScreen/.

Taking screen shots in the background

statScreen/bin/captureScreen.sh takes a screen shot of an X application and saves the image to statScreen/images/. This script does not require a physical display. Instead it uses 'Xvfb' (Xwindows Virtual Frame Buffer) to make a virtual display called :5 (which will cause problems if we ever use 6 monitors on mafalda). MEDM is then told to open its display on :5. Then the ImageMagik utility 'import' is told to capture the :5 display and save it as a PNG.

For the MEDM screens, there is a wrapper script grabMEDMScreens.sh which is what the cronjob actually runs. It takes a list of .adl files as an argument and captures the images of those screens.

The crontab on mafalda is setup to run the file 'statScreen/bin/cronjob.sh' calls grabMEDMScreens.sh with statScreen/etc/medmScreens.txtas the argument. This job will generate images in statScreen/images/.

To change/add MEDM screens to be captured, modify statScreen/etc/medmScreens.txt.

Empty lines and lines starting with # are ignored.

Computers_and_Scripts/statScreen (last edited 2012-01-03 23:02:43 by localhost)