Joseph,

Good that you've figured it out... I was away this evening and already
you have it working!

In most cases, just submit test jobs and you can easily test out most
of the functionality without destroying your cluster - or just setup a
1-node test cluster (even run as non-root, and use a different TCP
port & SGE_CELL on an existing cluster node) if you are testing
anything that would affect other users.

Rayson



On Thu, May 31, 2012 at 9:42 PM, Joseph Farran <[email protected]> wrote:
> Adding these lines at the end of <oge-dir>/default/common/sge_request
>
> -cwd
> -S /bin/bash
>
> Works and does what I was looking for.   Nice!
>
> Thanks.
>
>
>
> On 05/31/2012 05:40 PM, Joseph Farran wrote:
>>
>> Cool!   A lot easier than I thought.
>>
>> So a default shell can also be specified so that the batch script line "#$
>> -S /bin/bash" can be omitted?
>>
>> Joseph
>>
>>
>> On 05/31/2012 02:11 PM, Rayson Ho wrote:
>>>
>>> May be you can try sge_request, which sets the default request profiles:
>>>
>>> http://gridscheduler.sourceforge.net/htmlman/htmlman5/sge_request.html
>>>
>>> Rayson
>>>
>>>
>>>
>>> On Thu, May 31, 2012 at 5:04 PM, Joseph Farran<[email protected]>  wrote:
>>>>
>>>> First, I like to give my sincere Thank You to Rayson Ho and all others
>>>> who
>>>> graciously give of their time here to help the OGE community.     Really
>>>> appreciated folks!
>>>>
>>>> My understanding of OGE qsub for batch jobs is that it defaults to the
>>>> home
>>>> directory for standard out&  error files.
>>>>
>>>> To change the default output location with a batch script, one can use
>>>> the
>>>> OGE directive:
>>>>
>>>>    #$ -cwd
>>>>
>>>> Which will change to the current working directory, the directory where
>>>> the
>>>> OGE submitted batch file resides.
>>>>
>>>> My question is, can this be set as a default in OGE instead of the home
>>>> directory?       So that if batch scripts omit "#$ -cwd", that this will
>>>> be
>>>> automatically added and not have the output default to the home
>>>> directory?
>>>>
>>>> I realize that a batch script may have a "cd /here" or "cd /there", but
>>>> if a
>>>> "cdw" is added early in the batch script, then any user "cd /here" or
>>>> "cd
>>>> /there" would then overwrite the first "cdw".
>>>>
>>>> So the question is:  Can the default *not* be the home directory, but
>>>> rather
>>>> "cwd".
>>>>
>>>> Same question for having to specify a shell with a batch script.
>>>>
>>>>    #$ -S /bin/bash
>>>>
>>>> Can "/bin/bash" be set as the default shell if none are specified with
>>>> "$ -S
>>>> /bin/shell"?
>>>>
>>>> Thank you,
>>>> Joseph
>>>>
>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> [email protected]
>>>> https://gridengine.org/mailman/listinfo/users
>>>
>>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> https://gridengine.org/mailman/listinfo/users
>>
>>
>

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to