GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  UNIX::AUTOMOUNTFILE (3)

.ds Aq ’

NAME

Unix::AutomountFile - Perl interface to automounter files

CONTENTS

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 automounter files. It automatically handles file locking, getting colons and commas in the right places, and all the other niggling details. WARNING: This module is probably Solaris specific at this point. I have only looked at Solaris format automount files thus far. Also, you cannot edit /etc/auto_master with this module, since it is in a different format than the other automount files.

METHODS

add_server( MOUNT, CW@SERVERS )

This method will add additional servers to an existing automount point. It returns 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 server entries for that mount point, or undef if no such mount exists. If you supply more than one parameter, the mount point will be created or modified if it already exists. The list is also returned to you in this case.

    automounts( )

This method returns a list of all existing mount points, sorted alphabetically. In scalar context, this method returns the total number of mount 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 the supplied 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 the options 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, ssnodgra@fore.com

SEE ALSO

Unix::AliasFile, Unix::ConfigFile, Unix::GroupFile, Unix::PasswdFile
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 AUTOMOUNTFILE (3) 2000-05-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.