<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=ES><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white'>I don't think it’s possible, although there are some other alternatives. According to http://gridscheduler.sourceforge.net/htmlman/htmlman1/qsub.html, the following pseudo-environment variables ara available to the -o (stdout path) and -e (stderr path) options:</span><o:p></o:p></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222'><o:p> </o:p></span></p></div><div><pre><span style='color:#222222'>$HOME       home directory on execution machine<o:p></o:p></span></pre><pre><span style='color:#222222'>$USER       user ID of job owner<o:p></o:p></span></pre><pre><span style='color:#222222'>$JOB_ID     current job ID<o:p></o:p></span></pre><pre><span style='color:#222222'>$JOB_NAME   current job name (see -N option)<o:p></o:p></span></pre><pre><span style='color:#222222'>$HOSTNAME   name of the execution host<o:p></o:p></span></pre><pre><span style='color:#222222'>$TASK_ID    array job task index number<o:p></o:p></span></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222'><br>You can store these settings in a .jsubrc file located in your home dir (see mine for an example: /data/project/pbbot/.jsubrc) and any future call to jsub/start will parse it if present:<br><br>-o /data/project/project_name/logs/$JOB_ID.log<br><br>See also man jstart.<br><br>Kind regards,<br>PB<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>