New param "source environment"?

Nicolas Williams Nicolas.Williams at
Tue Jul 20 18:29:22 GMT 1999

I think I've mentioned/offered this before:

A new parameter whose purpose is to specify a file containing
<variable>=<value> pairs to be sourced into the current process'
environment. If the string value of this new parameter ends with a '|',
then the string value should be treated as a command whose output is to
be sourced into the environment.

This parameter would be useful to those of us who make much use of %()
environment variable substitution tokens.

This could have an application as a solution to the problem for which
Rune Henssel proposed adding "show to users" and "hide from users"
parameters. The solution using this 'source environment' paramter would
be similar to the one suggested by Dan Kaminsky, but simpler (no
intermediate temporary files would be needed; simply have a script
output a list of share names as the value to an environment variable
which is later interpolated into the value of the 'auto services'

I see many more uses for this, of course.

Nicolas Williams	(x5220, Stamford, CT)
Stamford SysAdmin

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

More information about the samba-technical mailing list