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]

Open Hand For more examples, see Samples.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-03-27.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
See how to
automatically
delete junk files