loadfiles-load files into shared memory cache
loadfiles -k
key
[
files
] [--]
loads the files
specified in the command line or the standard input into a shared memory cache associated with key
. If a shared memory cache exists for key then a directory of files in that cache is printed, and no files are added to the cache. When the cache is created its permissions are set to 0666. This permission means that the cache is readable and writable by everyone on the system. Files to be loaded into the cache are taken from the standard input if --
is specified on the command line instead of files
.
ipcrm(1) destroys the shared memory cache created by loadfiles
.
The command:
loadfiles -k${MSKIPCKEY} file1 file2
loads file1
and file2
into a shared memory cache associated with the value of the shell variable MSKIPCKEY
.
Only the last part of a file name is stored in the cache's directory. For example, /etc/motd
would be stored as motd
. Therefore one can not have both /etc/motd
and /tmp/motd
in the cache at the same time.
ipcrm
(1) in a UNIX System reference manual