[GE users] 6.2u2 qrsh and pipes
harald.pollinger at sun.com
Tue Jun 2 11:28:24 BST 2009
And I can give you an explanation for this behaviour:
You found the issue 3031, see
This bug is fixed and the fix will be in SGE 6.2u3.
Your workaround works because it redirects the output on the remote
host. You could also just submit:
# qrsh -pty yes "$YOUR_COMMAND | tee $YOUR_FILE"
(make sure to use the right quotes for your shell)
The problem with this workaround is: The $YOUR_FILE is created on the
remote host. If it is created on a local file system of the remote host,
you don't have it on your local host.
What you also could do is:
# qrsh -pty no $YOUR_COMMAND | tee $YOUR_FILE
This would redirect the output on the local host, but $YOUR_COMMAND
doesn't get a pty. I don't know if $YOUR_COMMAND really needs a pty, but
usually it doesn't.
> To answer my own question
> In my setup we always have $SGE_FILESDIR set as path to where the logs should be writted.
> I wrote a simple shell script that I call subme.sh:
> $* |tee $SGE_FILESDIR/$JOB_ID.log
> When the job is submitted:
> qrsh -pty y -b y .... subme.sh application -params ....
> Works perfectly.
> From: adary [mailto:adary at marvell.com]
> Sent: Tuesday, June 02, 2009 10:04 AM
> To: users at gridengine.sunsource.net
> Subject: [GE users] 6.2u2 qrsh and pipes
> Hi Everyone,
> I ran into an interesting problem
> Our grid was recently upgraded to 6.2u2, and prior to upgrade all qrsh users were used to use qrsh .... |tee logfile
> And this is now broken. At the same time, -o with qrsh doesn't give us the stdout of the application that runs. Any ideas on how to override this behavior?
> Yuval Adar, Marvell Israel - Senior UNIX System Administrator
> 6 Hamada Street
> Mordot HaCarmel Industrial Park
> Yokneam, 20692, Israel
> Email: adary at marvell.com<mailto:adary at marvell.com>
> Office: +972.4.9091188 - OnNet: 704.1188
> Fax: +972.4.9091501
> Mobile: +972.54.2493958
> Web site: http://www.marvell.com<http://www.marvell.com/>
> This message may contain confidential, proprietary or legally privileged information. The information is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone or by e-mail and delete the message from your computer.
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
Sun Microsystems GmbH Harald Pollinger
Dr.-Leo-Ritter-Str. 7 Sun Grid Engine Engineering
D-93049 Regensburg Phone: +49 (0)941 3075-209 (x60209)
Germany Fax: +49 (0)941 3075-222 (x60222)
mailto:harald.pollinger at sun.com
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Haering
To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
More information about the gridengine-users