PIKT

Samples: User Directories

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


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.
///////////////////////////////////////////////////////////////////////////////
//
// 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 downsys]

[For more examples, see Samples.]

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

Red Hat Enterprise Linux & Fedora Edition
Red Hat Enterprise Linux & Fedora Edition

Sams Teach Yourself SuSE Linux in 24 Hours Starter Kit
Sams Teach Yourself SuSE Linux in 24 Hours Starter Kit

SuSE Linux Enterprise Server 9 Administrator's Handbook
SuSE Linux Enterprise Server 9 Administrator's Handbook

The Linux Enterprise Cluster
The Linux Enterprise Cluster

UNIX System Administration Handbook
UNIX System Administration Handbook