Thanks for reply !

You are rigght, this is systemd unit file. So for filtering I just use
ExecStart=/bin/sh
-c /opt/sge/bin/sge_qmaster |&grep -v '^RUE_' ? Sorry, but I cannot
understand this part.


2018-03-23 12:49 GMT+01:00 William Hay <w....@ucl.ac.uk>:

> On Fri, Mar 23, 2018 at 12:07:39PM +0100, Sms Backup wrote:
> >    Thanks for your replies,
> >    So in total it would be something like this: ExecStart=/bin/sh -c
> >    /opt/sge/bin/sge_qmaster |&grep -v '^RUE_' >&/dev/null ?
>
> No. The  grep is intended to replace of the redirection to /dev/null so
> as to remove only unwanted messages while allowing anything important
> through.  You shouldn't use both.  Also you probably need to place
> everything after the -c in double quotes so it is interpreted by the
> shell as I don't think ExecStart parses redirection that way.
>
> If your current unit file is calling sge_qmaster directly and you want
> to throw away (rather than filter) stderr you could use StandardOutput=null
> and StandardError=null in the unit file rather than using >&/dev/null.
>
> Incidentally an earlier post implies you are trying to set the
> SGE_CLUSTER_NAME
> via shell magic in a context (systemd unit file?) where the shell magic
> doesn't work.
>
> William
>
>
_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to