Hi,
Am 21.04.2011 um 16:25 schrieb Mazouzi:
> We would like to force array job to use at max a value N.
>
> Actually users requests array tasks like :
>
> # $-t 1-100 -tc 60
>
> we want to limit the tc value at 20 maximum.
>
> Is there another solution without using JSV ?
no. Only a wrapper to `qsub`.
> I tried to write a JSV for that but i don't know how to override the
> requested value, here is my scratch script :
>
> tc=$(jsv_get_param t_step)
No, t_step is the stepsize of the plain -t argument:
instances=`jsv_get_param tc`
should do it.
Hehe - looks like it's not documented in the manpage but the Wiki only.
-- Reuti
> if [[ $tc gt 20 ]]; then
> jsv_set_param tc "20"
> jsv_correct "Job was modified"
> else
> jsv_accept "Job OK"
> fi
> return
>
>
> Thanks in advance.
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users