[gridengine users] Display a warning from jsv.sh to the user via stderr
P. Golik
p.golik at gmail.com
Thu May 31 16:30:53 UTC 2012
Sorry, let me try again. Normally, I would get the job id by calling
something like
$ id=$(echo echo 1 | qsub -l h_vmem=1g | cut -d " " -f3) && echo "id=$id"
id=7222196
Now I add a JSV script that would print a warning or an error to the
terminal
$ id=$(echo echo 1 | qsub -l h_vmem=1g -jsv
$SGE_ROOT/util/resources/jsv/jsv.sh | cut -d " " -f3) && echo "id=$id"
Unable to run job: Job is rejected. It might be submitted later..
Exiting.
id=hard
The word ("hard") is the third word from JSV's error message "h_vmem as
hard resource requirement has been deleted" that was printed to stdout.
Anyway, if the job can be submitted, the warnings sent with
jsv_log_warning() pollute the output on stdout.
What I would like to have, is the following:
$ id=$(echo echo 1 | qsub -l h_vmem=1g -jsv
$SGE_ROOT/util/resources/jsv/jsv.sh | cut -d " " -f3) && echo "id=$id"
WARNING: something went wrong, but JSV fixed it (this is written to stderr)
id=7222196
But instead I get
id=went
Is there a way to send a warning to user's stderr from jsv.sh?
I hope that was clearer.
On Thu, May 31, 2012 at 5:50 PM, Rayson Ho <rayson at scalablelogic.com> wrote:
> Can you give us the instructions to reproduce the problem?? (Simple,
> step by step instructions would be ideal.)
>
> I got a JSV-related issue reported to me this morning, and if I can
> easily reproduce the problem you've encountered, then I can look at
> both of the JSV problems when I have time.
>
> Rayson
>
>
>
> On Thu, May 31, 2012 at 11:28 AM, P. Golik <p.golik at gmail.com> wrote:
> > Hi!
> >
> > I'm running a global JSV shell script for controlling user defined
> > parameters.
> >
> > By default, JSV prints the output of jsv_log_{warning,info,...} to
> stdout.
> > Unfortunately, we have to use some wrapper script that parses the output
> of
> > qsub in order to get the job id. On the other hand, stderr seems to be
> used
> > by JSV for communication.
> > Is there an alternative way to print some warning to user's terminal
> without
> > breaking the communication with JSV and without modifying stdout?
> >
> > Thanks!
> >
> > _______________________________________________
> > users mailing list
> > users at gridengine.org
> > https://gridengine.org/mailman/listinfo/users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gridengine.org/pipermail/users/attachments/20120531/e8404eeb/attachment.html>
More information about the users
mailing list