Using Prog

Joe McKinnon Joe.McKinnon at member.sage-au.org.au
Tue Jan 6 03:58:48 EST 2004


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


More information about the Arguslist mailing list