[Serusers] variable/#define in ser configuration file

Andreas Granig a.granig at inode.at
Thu Jan 13 14:55:18 CET 2005


Hi,

Andrea Federico wrote:
> #define PHONE_IP ="10.10.2.3"
> #define MSG_ERROR="this is a message error"
> 
> etc. etc.
> 
> if it's not possible, how can I obtain the same behaviour?

We use a kind of template config file for ser, where we have templates 
like MY_TMPL_FOO, and a shell script which uses sed to replace the 
templates by the real strings, copies it to the right place, sets the 
permissions to 444 to protect against editing and starts ser with -c for 
checking the resulting config file.

Andy





More information about the sr-users mailing list