monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I use dollar sign in paths in monit config file?


From: Aleksander Kamenik
Subject: Re: Can I use dollar sign in paths in monit config file?
Date: Thu, 21 Jun 2007 11:21:13 +0300
User-agent: Thunderbird 2.0.0.4 (X11/20070615)

Jan-Henrik Haukeland wrote:

On 21. jun. 2007, at 08.45, Sergio Trejo wrote:

Thanks for clarifying this. I can write a simple Ruby script to pre-process quite easy.

begin
  ruby mumbo jumbo
rescue me
exec "/usr/bin/perl -e 'print(q(perl is the answer! what was the question?);"
end

Actually one only needs one sed command, no scripting:

sed -i s/"\$HOME"/"\/path\/to\/home"/g monitrc

--
Aleksander Kamenik
system administrator
+372 6659 649
address@hidden

Krediidiinfo AS
http://www.krediidiinfo.ee/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]