|
Size: 892
Comment:
|
Size: 1561
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| = 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 4: | Line 11: |
| ''/cvs/cds/project/statScreen/bin/captureScreen.sh'' takes a screen shot of an X application and saves the image to ''/cvs/cds/caltech/statScreen/images/''. |
''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 7: | Line 16: |
| This script does '''not''' require a physical display. | 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: |
| 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. A cron job runs on nodus calling the above scripts. The cron actually runs cronjob.sh, which calls ''grabMEDMScreens.sh'' with ''statScreen/etc/medmScreens.txt'' as the argument. |
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. |
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.
