Anil Jangity writes:
 >  In the above example I had to specify "/blah" as the dir on the server. In
 >  IRIX there is an option for "-hosts", which mounts ALL exported fs on the
 >  host server. I need to do a similar think in Linux.
 >  
 >  I was thinking of using the "program" automount options to create a script
 >  that could use showmount to automatically mount them appropriately but
 >  unfortunately I can't get that to work.

This is a good idea!!! Look at http://www.goop.org/~jeremy/autofs/ ,
you will find patch to allow multi-mount and "program" map to emulate
-hosts option .

 >  PS: The reason I am running it manuually via automount is the script
 >  rc.d/init.d/autofs doesn't like the program keyword. Just doesn't work and
 >  I don't really feel like looking at it to fix it.

You don't have to specified the map type (file, program, nis), the
starting script guess it:

 - if map exist on disk => "file"
 - if map exist on NIS  => "nis"
 - if map exist on disk and is executable => "program"

-- Julien

Reply via email to