monit-general
[Top][All Lists]
Advanced

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

start/stop command and "cd"


From: Josh Sharpe
Subject: start/stop command and "cd"
Date: Tue, 19 Oct 2010 21:43:55 -0400

If my start cmd looks like this:

start program = "cd some_path; some_command"

I get this error:

the executable does not exist 'cd'

can't execute the command directly, cd has to happen first. (It's a rake task, it won't work otherwise, lame? yes.)

The issue is that "cd" is part of the shell, not a command.  So is "pushd" if your'e wondering.

So, with monit can I specify the working directory some other way?

reply via email to

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