
Shell
| This option | Allows you to |
| Input | Write an image to disk, then execute a program which uses that image as input. |
| Output | Execute a program that generates an image, then read the image output by the program into Eddie. |
| In & Out | Write an image to disk, execute a program which will act on that image, then read the result into Eddie. |
To initialize a script, you must specify the input and output file names in the File to read in and File to write out text boxes. You must also set the current frame on the timeline. The Info prog option may be used to determine the resolution of an image before it is passed to the Processing prog. If you do not intend to use the Info prog option, you do not need to enter anything in this text box.
| This option | Specifies this |
| Processing prog | The name of the program or script that Eddie executes each time the Shell tool is accessed in the hierarchy. |
| Info prog | The name of a program used to provide information about a file, such as its resolution. |
| File to read in | The name of the image which the external processing program generates, and which will be read into Eddie. |
| File to write out | The name of the image which will be written to disk by Eddie and then processed by Processing prog. |
1. Select a Shell tool from the Tool bar and connect the Source target to the top of your hierarchy. Open the Shell Tool Editor.
2. Select the Input option.
3. Select the SOFTIMAGE file format option.
4. Type the write_to_tape.sh file name in the Processing prog text box. Step 9 provides the script for this file.
5. Type the file name image.pic in the File to write out text box. This creates an image on disk called image.pic which will be subsequently saved to tape by the write_to_tape.sh script.
6. Set a frame number using the timeline.
7. Using the Write command, write the entire hierarchy to disk.
8. At the IRIX prompt, start a text editor such as vi or jot. Use the text editor to enter the following comments to describe your C-shell script:
#! /bin/sh # Incrementally write individual tar files to a # no-rewind tape drive9. After the above lines, enter one of the following two lines.
tar -cvf /dev/nrtape image.pic
tar -cvf /dev/mt/tps0d6nr image.pic10. Save your C-shell script, giving it the write_to_tape.sh file name.
11. At the IRIX prompt, type the following line and press Enter. This allows the C-shell script to be executed.
chmod +x write_to_tape.sh12. At the IRIX prompt, initialize the tape drive by typing:
mt rew
