User Directories
This dirs_user_objects.cfg example specifies user directories. Note the use of the showdisks.pl program within the process #verbatim's to automatically generate much of the directory lists. This objects file might be referenced by a Pikt script such as EmptyNetscapeCache.
/////////////////////////////////////////////////////////////////////////////// // // dirs_user_objects.cfg // /////////////////////////////////////////////////////////////////////////////// DirsUser // now auto-generated #if munich # verbatim <objects/dirs_user/dirs_user_munich_objects.cfg> [/pikt/bin/piktc -xI +C "=prgdir/showdisks.pl -u" +H munich 2>/dev/null | /usr/bin/egrep -iv "spare"] #elif egbdfmus // /pub/mus_disk_12 // private disk // /pub/mus_disk_13 // private disk # verbatim <objects/dirs_user/dirs_user_egbdfmus_objects.cfg> [/pikt/bin/piktc -xI +C "=prgdir/showdisks.pl -u" +H egbdfmus 2>/dev/null | /usr/bin/egrep -iv "mus_disk_12|mus_disk_13"] #elif paris # verbatim <objects/dirs_user/dirs_user_paris_objects.cfg> [/pikt/bin/piktc -xI +C "=prgdir/showdisks.pl -u" +H paris 2>/dev/null] [...] #elif davao | manila /home #else /home #endif ///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the DirsUser.obj file to each PIKT slave system with, for example:
# piktc -iv +O DirsUser +H all [or: ... -H down]
For more examples, see Samples.