SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Old RedHat 7.X perl-Unix-ConfigFile-0.05-8.i386.rpm

AutomountFile

Section: User Contributed Perl Documentation (3)
Updated: perl v5.6.0
Index 

NAME

Unix::AutomountFile - Perl interface to automounter files 

SYNOPSIS

  use Unix::AutomountFile;
  $am = new Unix::AutomountFile, "/etc/auto_home";  $am->automount("newuser", "fileserver:/export/home/&");  $am->options("newuser", "-rw,nosuid");  $am->delete("olduser");  $am->commit();  undef $am;
 

DESCRIPTION

The Unix::AutomountFile module provides an abstract interface to automounterfiles. It automatically handles file locking, getting colons and commas inthe right places, and all the other niggling details. WARNING: This module isprobably Solaris specific at this point. I have only looked at Solaris formatautomount files thus far. Also, you cannot edit /etc/auto_master with thismodule, since it is in a different format than the other automount files. 

METHODS

 

add_server( MOUNT, @SERVERS )

This method will add additional servers to an existing automount point. Itreturns 1 on success and 0 on failure. 

automount( MOUNT [,@SERVERS] )

This method can add, modify, or return information about a mount point.Supplied with a single mount parameter, it will return a list of the serverentries for that mount point, or undef if no such mount exists. If you supplymore than one parameter, the mount point will be created or modified if italready exists. The list is also returned to you in this case. 

automounts( )

This method returns a list of all existing mount points, sortedalphabetically. In scalar context, this method returns the total number ofmount points. 

commit( [BACKUPEXT] )

See the Unix::ConfigFile documentation for a description of this method. 

delete( MOUNT )

This method will delete the named mount point. It has no effect if thesupplied mount point does not exist. 

new( FILENAME [,OPTIONS] )

See the Unix::ConfigFile documentation for a description of this method. 

options( MOUNT [,OPTIONS] )

Read or modify the mount options associated with a mount point. Returns theoptions in either case. 

rename( OLDNAME, NEWNAME )

Renames a mount point. If NEWNAME corresponds to an existing mount point,that mount point is overwritten. Returns 0 on failure and 1 on success. 

AUTHOR

Steve Snodgrass, ssnodgraAATTfore.com 

SEE ALSO

Unix::AliasFile, Unix::ConfigFile, Unix::GroupFile, Unix::PasswdFile


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS
add_server( MOUNT, @SERVERS )
automount( MOUNT [,@SERVERS] )
automounts( )
commit( [BACKUPEXT] )
delete( MOUNT )
new( FILENAME [,OPTIONS] )
options( MOUNT [,OPTIONS] )
rename( OLDNAME, NEWNAME )
AUTHOR
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector