William Hay <[email protected]> writes:

> On 25 January 2013 09:56, Semion Chernin <[email protected]> wrote:
>
>>  How I can help to this user?
>>
>>  The trouble is that for some reason the program I am running will output
>> to the console while run directly on a node, but while submitted as a job -
>> will not output to the output file (.o) or error file (.e) - therefore I
>> resorted to pipes, where I had no luck even with explicit paths.
>>
> What do you mean by the console?  The actual screen and keyboard attached
> to the node or just the user's session?

If it's the former, you probably can't do much without something like an
LD_PRELOAD shim to intercept the console.

> You could try submitting the job via qrsh -now n program and redirect the
> output of that.  Hopefully qrsh will do a good enough impersonation of a
> terminal to convince the program to send its data where you want.

SGE 8 has a "-pty y" option for qsub if it's a question of needing a tty
non-interactively, and it also has some pty fixes.  Otherwise, something
Expect-like might help.

-- 
Community Grid Engine:  http://arc.liv.ac.uk/SGE/
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to