<div dir="ltr">Since you're using pipe operations, you might try running the commend in a shell.<br><br>program=/bin/bash -c "/usr/local/bin/programX \`programY | sed \$2 | awk '{print \$1}'\`"<br><br>
<div class="gmail_quote">On Mon, Sep 22, 2008 at 4:22 AM, filip Van Craenenbroeck <span dir="ltr"><<a href="mailto:filip.vancraenenbroeck@gmail.com">filip.vancraenenbroeck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi,<br><br>I have a question around the [program:x] section settings.<br><br>The command line should allow to start the program you want to be supervised by the supervisor.<br>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:<br>
<br>program=/usr/local/bin/programX `programY | sed $2 | awk '{print $1}'`<br><br>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.<br>
I have tried a number of things like play with the quotes but that does not seem to help.<br><br>Can anyone tell me if this is supported or what I'm doing wrong here?<br><br>Thank in advance<br><br>Best regards<br><br>
Filip<br></div>
<br>_______________________________________________<br>
Supervisor-users mailing list<br>
<a href="mailto:Supervisor-users@lists.supervisord.org">Supervisor-users@lists.supervisord.org</a><br>
<a href="http://lists.supervisord.org/mailman/listinfo/supervisor-users" target="_blank">http://lists.supervisord.org/mailman/listinfo/supervisor-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Roger Hoover<br>Lead Engineer<br>Mozes, Inc.<br><a href="http://www.mozes.com">www.mozes.com</a><br>Text roger to 66937<br><br>This message may contain CONFIDENTIAL or PRIVILEGED information. If you are not the intended recipient, do not printout, copy<br>
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.<br>
</div>