Working With Files
The DCE control program has several commands for use in reading from and writing to files. Files are useful for things like storing the output of dcecp operations for later reference.
Here are several useful examples of file manipulation.
· You could run a server catalog operation across all of the hosts in a cell and store the results from each host in a host-specific file. Later, you could compare the
files to produce a report of server configurations.
· You could detect inactive accounts by running a dcecp script that shows the last time each account was logged into, storing this information in a file for later
evaluation.
· You could also modify DCE files that aren't manipulated easily using the dcecp hostdata object. For example, you could write a function that added a new attribute to
the cds_attributes file.
DCE as provided by the Open Software Foundation currently supports file operations only for UNIX systems or for systems that support POSIX system calls. However, some vendor DCE versions may support
file operations on other systems.
More:
Specifying File Names
Reading and Writing Files
|