Since you're using pipe operations, you might try running the commend in a
shell.

program=/bin/bash -c "/usr/local/bin/programX  \`programY | sed \$2 | awk
'{print \$1}'\`"

On Mon, Sep 22, 2008 at 4:22 AM, filip Van Craenenbroeck <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have a question around the [program:x] section settings.
>
> The command line should allow to start the program you want to be
> supervised by the supervisor.
> I want to put in that line an argument that is composed out of the return
> string from a sed and awk operation. To be a bit more clear:
>
> program=/usr/local/bin/programX  `programY | sed $2 | awk '{print $1}'`
>
> So the argument is the result of the sed/awk operation on the output of
> programY. The reason for doing so is that the output might change so during
> a restart operation this always needs to be checked.
> I have tried a number of things like play with the quotes but that does not
> seem to help.
>
> Can anyone tell me if this is supported or what I'm doing wrong here?
>
> Thank in advance
>
> Best regards
>
> Filip
>
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>


-- 
Roger Hoover
Lead Engineer
Mozes, Inc.
www.mozes.com
Text roger to 66937

This message may contain CONFIDENTIAL or PRIVILEGED information. If you are
not the intended recipient, do not printout, copy
or distribute this message or any attachments. Advise the sender immediately
by reply e-mail, and delete this message and attachments without retaining a
copy.
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to