On 15 September 2011 09:00, Sangmin Park <[email protected]> wrote:
> hello,
> I have a question about naming of job.
> in the sge batch file, for example,
> I want to name my job below
> #!/bin/bash
> myjob=xxx
> #$ -N $myjob
> #$ -q serial.q
> ............
> but, it doesn't work
> is there rules for naming of job in SGE?
> thanks in advanced.
> sangmin
>
This won't work because the variable assignment and expansion are
performed by the shell long after qsub has processed and named the
job.  Also the shell probably doesn't do expansion in comments (which
is what the #$ line looks like to it).

If you want something like this then you would probably be best off
writing a qsub wrapper that passed the name in on the command line.

The rules for valid name are described under the name entry in the
sge_types manpage.

William
>
> --
> ===========================
> Sangmin Park
> Statistical Physics Lab
> Department of Physics
> Sejong University
> Seoul 143-747, Korea
>
> mobile : +82-10-5094-0405
> ===========================
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to