Subject: Using Prog

From: "Joe McKinnon" <[email-masked]>
Date: Tue, 6 Jan 2004 18:58:48 +1000

Hi,

Is there a simple what to pass the host name to a 'prog:' line?

Looking to have a series of servers that all run certain Unix scripts, and don't wish to continually have to type in something like

prog :
{
command : somescript.sh hostname
}

Therefore is it possible to do something like

prog:
{ command : somescript.sh %HOST
}
where %HOST passes in the host name variable for the server's entry.

This what I can easily add in more servers, and only have to change the server's name in one location, not several.

thanks Joe.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 2/01/2004