SUMMARY executable automount maps?

From: Andy Mitchell <andy.mitchell_at_pobox.com>
Date: Tue Feb 19 2002 - 07:34:34 EST
On Mon, 18 Feb 2002, Andy Mitchell wrote:
>Anyone ever make use of the executable map type with Sun's automounter?

Turns out that Eric van de Meerakker <E.Meerakker@GryphIT.nl> had. Eric
was kind enough to provide the answer. Everything I was doing was correct
*except* for what I was outputting to STDOUT from the executable map. You
do not need to provide the key on STDOUT. Output only the value. For
example:

/etc/auto_master:
	/var/remote1	/etc/auto.test

/etc/auto.test:
	#!/bin/sh
	echo $1 > /var/tmp/mount_this
	echo host23:/export/remote_fs

-rwxr-xr-x   1 root     other         85 Feb 19 07:01 /etc/auto.test*

And the results look like:
=====================================================
sun-afm-1{T9103708}2:cd /var/remote1/oogabooga

sun-afm-1{T9103708}3:cat /var/tmp/mount_this
oogabooga

sun-afm-1{T9103708}4:pwd
/var/remote1/oogabooga

sun-afm-1{T9103708}5:ls
remote_file_1

sun-afm-1{T9103708}6:mount | grep oogabooga
/var/remote1/oogabooga on host23:/export/remote_fs \
	remote/read/write/setuid/dev=3440022 on Tue Feb 19 07:34:07 2002

Sweet. Thanks, Eric!

-- 
 Andrew F. Mitchell
 afm@mifydnu.com
 security = 1/convenience
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Feb 19 06:39:43 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:34 EST