[Top][All Lists]

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

Re: start/stop command and "cd"

From: rory
Subject: Re: start/stop command and "cd"
Date: Tue, 19 Oct 2010 18:48:06 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5

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'

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?
-- To unsubscribe:
start program = "bash -c 'cd some_path; some_command'"

may work.

reply via email to

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