Name

CDimage - CD Mastering Utility for Instrument Data

Synopsis

CDimage create ["Description"]
CDimage select volume_id
CDimage addrun run [run ...]
CDimage prepCD
CDimage mkisofs
CDimage delete volume_id
CDimage status

Description

CDimage is a utility to assist in the mastering of compact disc (CD) images of instrument data within the Anderson Group data acqusition architecture. CDimage is a perl script that invokes a number of other scripts and utilities to fullfill its mission.

CDimage is run from an experiment's home directory where it expects to be able to find the Experiment.config file. It will also look for a file called .CDimagerc, which may contain perl statements to tailor the operation of CDimage, and .mkisofsrc, which should contain some default information for mkisofs.

The usual procedure is as follows:

CDimage create "Test runs, June 30, 2002"
CDimage addrun 020630.1
CDimage addrun 020630.2 020630.3
CDimage prepCD
CDimage mkisofs >image.iso

CDimage create ["Description"]

Creates a new image directory under the CDimageBase directory defined in .CDimagerc. Copies the default .mkisofsrc data into a local copy of .mkisofsrc and adds the description. Sets the new image as the current image.

CDimage addrun run [ run ... ]

Adds raw data from the specified run(s) to the current image. CDimage looks for the raw data under the current directory and on the flight computer if present. It attempts to locate the run under any of the raw subdirectories, so a complete path is not required. It does not copy the raw data into the image directory, but instead creates a soft link to the data where it currently exists.

If $CDimage::link_anal is set to be non-zero in .CDimagerc, the anal directory for the run will also be linked into the CD image.

CDimage prepCD

Checks the current image to make sure it will be accepted by mkisofs by running the prepCD script, then runs dircksum so the CD can be thoroughly verified after burning.

CDimage mkisofs

Invokes mkisofs to create the ISO9660 image that will be written to the CD. The image output is written directly to stdout, so the output must be redirected to a suitable output file. This approach was used to facilitate transfer to remote systems. CDimage mkisofs can be invoked on a remote system via ssh with the output redirected to a file on the local system. In this way, a CD image can be created and tranferred to another system without making any intermediate copies.

Author

Norton T. Allen


Return to Manuals Guide


last updated: Fri May 7 15:08:35 2004 webmaster@huarp.harvard.edu
Copyright 2004 by the President and Fellows of Harvard College