monit-general
[Top][All Lists]
Advanced

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

Re: start/stop command and "cd"


From: Eric Pailleau
Subject: Re: start/stop command and "cd"
Date: Wed, 20 Oct 2010 09:11:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5

Le 20/10/2010 03:48, rory a écrit :
  On 10/19/10 6:43 PM, Josh Sharpe wrote:
If my start cmd looks like this:

start program = "cd some_path; some_command"

I get this error:

the executable does not exist 'cd'


hello,
It seems that monit need the first term be a valid path to an executable.
As execs comes without any PATH environnement, you certainly need to
give an absolute path to it.
The problem here is that 'cd' is not a program but a shell term, like 'for' or 
any other shell statements.
You found it by yourself.

Regards






reply via email to

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