next up previous 62
Next: About this document ...
Up: Additional utilities
Previous: dbmcat


scbcp.pl

The scbcp.pl utility copies all the indexes which have been written by scbindex.pl (see section 5.1) from one directory to another.

Source documentation is as follows:

#  Name:
#     scbcp.pl

#  Purpose:
#     Copy SCB indexes from one directory to another.

#  Language:
#     Perl 5

#  Invocation:
#     scbcp.pl $dir1 $dir2

#  Description:
#     This utility copies all the index files used by the SCB package
#     from one directory to another.  It is an improvement on copying
#     the files using cp in two ways:
#
#        1) It knows which files to copy.
#        2) It will copy sparse files in a sparse way.
#
#     The second may be important depending on the implementation of 
#     DBM being used.  Some DBMs can create sparse files, that is ones
#     with large 'holes' in them, which occupy few disk blocks but 
#     when copied in any of the usual ways (for instance with cp(1))
#     produce files which occupy many more blocks.  Whether a file is
#     sparse can be determined by comparing the output of 'ls -l' and 
#     'ls -s'.
#
#     During operation, the utility reports the copies being carried out.
#
#     This utility is not required for normal operation of the package,
#     it is provided for optional use.

#  Arguments:
#     dir1
#        Source directory containing SCB indexes.
#     dir2
#        Target directory into which SCB indexes are to be copied.
Thus to create a private copy of the SCB indexes, for instance in order to create a modified personal index, a command like the following would be used:
% scbcp.pl /star/etc/scb ~/star/etc/scb
/star/etc/scb/tasks -> /home/user/star/etc/scb/tasks
/star/etc/scb/func -> /home/user/star/etc/scb/func
/star/etc/scb/file -> /home/user/star/etc/scb/file



next up previous 62
Next: About this document ...
Up: Additional utilities
Previous: dbmcat

SCB --- Source Code Browser
Starlink User Note 225
M. B. Taylor
10 December 1999
E-mail:ussc@star.rl.ac.uk