Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: conserver: users

Console Variables

 

 

conserver users RSS feed   Index | Next | Previous | View Threaded


benbatten at gmail

Sep 16, 2009, 5:18 AM

Post #1 of 2 (155 views)
Permalink
Console Variables

Is it possible to use variable substitutions/interpolations in
conserver.cf? I'm looking to shorten the numerous console definitions
I have by utilizing a default but interpolate a host name from the
command line in the default block. So in my conserver.cf file I have:

default somedefault { somestuff; ssh $consolehost; }

console consolehostA { include somedefault }

console consolehostB { include somedefault }

...

console consolehostZ { include somedefault }

Then on the command line I type:

console consolehostA

... and I get hostA or hostP or whichever host console I type.

Make sense?

TIA!

Ben--
_______________________________________________
users mailing list
users[at]conserver.com
https://www.conserver.com/mailman/listinfo/users


wernli at in2p3

Sep 16, 2009, 5:50 AM

Post #2 of 2 (140 views)
Permalink
Re: Console Variables [In reply to]

On Wed, Sep 16, 2009 at 08:18:54AM -0400, Ben Batten wrote:
> Is it possible to use variable substitutions/interpolations in
> conserver.cf? I'm looking to shorten the numerous console definitions
> I have by utilizing a default but interpolate a host name from the
> command line in the default block. So in my conserver.cf file I have:

look for execsubst in the manpage

_______________________________________________
users mailing list
users[at]conserver.com
https://www.conserver.com/mailman/listinfo/users

conserver users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.