Hi Sharon,
when the process writes to two different files, the problem doesn't occur. I
already tested
that yesterday. Therefore I guessed it to be a problem in STAF/STAX, as my
program
does not know about that.
But I will try to do the test you proposed ASAP.
One more question: How is writing to file realized in STAF? Does it actually use
redirection or does it read from a pipe and write itself? And if so, does it
always use 2
separate pipes for stderr/stdout or one common if possible?
BTW: I do not use <returnstdout/err>.
Bodo
________________________________
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Wednesday, July 15, 2009 9:03 PM
To: Strösser, Bodo
Cc: 'staf-users@lists.sourceforge.net'
Subject: Re: [staf-users] Sporadically first line of stderr missing
Hi Bodo,
There are no known problems.
If you run your process without using STAF/STAX and redirect its stdout and
stderr to the same file do you ever see this problem occur? For example:
# yourprogram > /tmp/process.out 2>&1
If so, then it wouldn't appear to be a problem in STAF/STAX.
If this problem doesn't occur when you run the program without STAF/STAX, If
you change your <process> element to redirect stdout and stderr to two
different files by using the <stderr> element and specifying a file name and
not specifying mode="'stdout'", does the problem no longer occur? e.g. Does
the stderr file always contain the first line you expect to be written to it?
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Strösser, Bodo <bodo.stroes...@ts.fujitsu.com>
07/15/2009 01:30 PM
To
"'staf-users@lists.sourceforge.net'" <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Sporadically first line of stderr missing
Hi,
my STAXJob starts a <process>. The process writes to stdout and stderr quite
simultaneously, as it forks and one writes to stdout and the other writes to
stderr
both using fputs().
All output lines also are printed to STAXMon using 'STAX JOB nn MESSAGE'
STAFF shall write both, stdout and stderr to one file, as the <process> element
contains a <stdout>filename</stdout> and a <stderr mode="'stdout'"/>.
On STAXMon, all output messages are present. But on the file, sometimes the
first line of stderr is missing. All others always are present.
Is there any known problem?
Best Regards
Bodo------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at:
http://p.sf.net/sfu/Challenge_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users