run-once LocalCommand [was: Re: Announce: OpenSSH 5.6 released]
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Aug 26 02:46:49 EST 2010
On 08/25/2010 06:29 AM, Bert Wesarg wrote:
> Thanks for the clarification. I have actually never tried it, because
> my understanding from reading the documentation of LocalCommand
> suggests that the command will be executed for each 'ssh' invocation.
> Be it a mux master or a mux client. I can try to bring up a patch
> which clarifies this in the documentation.
could you just make your LocalCommand test to see if it needs to be run?
e.g.
if [ grep -qv "^${MOUNTPOINT}" /proc/mounts ] ; then
mount "${MOUNTPOINT}"
fi
in that case, it could run at each invocation and just do nothing if it
wasn't needed.
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 892 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20100825/f7dd529e/attachment.bin>
More information about the openssh-unix-dev
mailing list