From: "Andreas Neuper" <ANeuper@web.de>
To: autofs@linux.kernel.org
Subject: Is the "program" format correct ?
Date: Sun, 08 Aug 2004 16:47:34 +0200 [thread overview]
Message-ID: <1399068150@web.de> (raw)
Hello,
I am new to the list. I wanted to use the program format to provide some good solution.
Unfortunately, it showed a strange behaviour. It seems to me, nobody really ever used it!
Your example delivered with the distribuion works, although it should not IMHO.
I would expect that the program format causes the same action as
e.g. a nis-map or a file. Maybe I am wrong with my expectations.
Try this:
~# cat /etc/auto.master
/auto /etc/auto.auto
~# cat <<*** >/etc/auto.cat
#!/bin/sh
grep -v ^# /etc/auto.auto
exit 0
***
~# chmod a+x /etc/auto.cat
~# /etc/auto.cat
floppy -fstype=auto :/dev/fd0
video -fstype=nfs,rw,rsize=8192,wsize=8192 ok:/home/video
~# echo "/tmp/cat /etc/auto.cat" >> /etc/auto.master
~# /etc/rc.d/autofs restart
~# ls /auto/video
. .. DVD
~# ls /tmp/cat/
. ..
~# ls /tmp/cat/video
^C
~# tail -5 /var/log/messages
Aug 8 16:26:21 akemi automount[6212]: mount(nfs): host -fstype=auto: lookup failure
Aug 8 16:26:21 akemi automount[6212]: mount(nfs): host : lookup failure
Aug 8 16:26:21 akemi automount[6215]: mount(nfs): host floppy: lookup failure
Aug 8 16:26:21 akemi automount[6215]: mount(nfs): host -fstype=auto: lookup failure
Aug 8 16:26:21 akemi automount[6215]: mount(nfs): host : lookup failure
thanks for reading. Is there a simple solution?
Andreas
____________________________________________________
Aufnehmen, abschicken, nah sein - So einfach ist
WEB.DE Video-Mail: http://freemail.web.de/?mc=021200
next reply other threads:[~2004-08-08 14:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-08 14:47 Andreas Neuper [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-11 7:16 Is the "program" format correct ? Takashi Yoshizawa
2004-08-14 16:21 Andreas Neuper
2004-08-15 2:15 ` raven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1399068150@web.de \
--to=aneuper@web.de \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.