Sharon,
I implemented your proposal for a workaround. So, the
problem is solved. Thank you!
Bodo
________________________________
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Thursday, July 16, 2009 8:48 PM
To: Strösser, Bodo
Cc: 'staf-users@lists.sourceforge.net'
Subject: RE: [staf-users] Logging to STAFProc's stdout
Bodo,
As a workaround, if you want don't want the stdout/stderr for a process that is
run on a Unix machine written to STAFProc's console nor to a file, you could
redirect stdout/sdterr to /dev/nul. For example:
<process>
<location>machine</location>
<command>cmd</command>
<stdout>'/dev/nul'</stdout>
<stderr mode="'stdout'"/> OR <stderr>'/dev/nul'</stderr>
</process>
Also, I open a feature request for this (or you can if you prefer) so that
STAFProc's output won't be cluttered with unwanted process stdout/stderr as you
said. Perhaps it we should make the NEWCONSOLE option the default for Unix
processes (like it already is on Windows). On Unix, this could mean to have
the stdout/stderr output sent to /dev/nul if you don't specify STDOUT/ERR nor
RETURNSTDOUT/ERR so that the process's console is not shared with STAFProc's
console by default. I'll have to investigate this further for the right
implementation.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Strösser, Bodo <bodo.stroes...@ts.fujitsu.com>
07/16/2009 01:19 PM
To
Sharon Lucas/Austin/i...@ibmus
cc
Subject
RE: [staf-users] Logging to STAFProc's stdout
Sharon,
I'm running STAFProc on Linux. And I'm using nohup, so output is written to
file.
Unfortunately, some of the processes are a bit noisy, so the file will grow
very long.
As those prints are actually not relevant, they are not written to file.
If there are some important messages from STAFProc itself, it will be hard to
find them. So, an option would be fine.
Bodo
________________________________
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Thursday, July 16, 2009 7:53 PM
To: Strösser, Bodo
Cc: 'staf-users@lists.sourceforge.net'
Subject: Re: [staf-users] Logging to STAFProc's stdout
Bodo,
When starting a process on Windows using STAF, the default is to get the
process a new console window (e.g. via the NEWCONSOLE option, and is the
default if the SAMECONSOLE option is not specified). So, yes, when starting a
process on Windows using STAF, and you don't specify the STDOUT/ERR nor
RETURNSTDOUT/ERR option(s), the process's output is sent to a new console
(which disappears when the process completes) instead of to STAFProc's output
by default (e.g. when you don't specify the SAMECONSOLE option).
However, when starting a process on Unix using STAF, the default is to have the
process share the STAFProc console and specifying the NEWCONSOLE option has no
effect. So, no, on Unix, there is not an option to switch this output off if
you don't specify the STDOUT/ERR nor RETURNSTDOUT/ERR options(s). However,
note that if you start STAFProc using nohup, e.g. (nohup STAFProc &) which
redirects STAFProc's output to nohup.out or if you start STAFProc and redirect
it's output (e.g. STAFProc & > /tmp/stafproc.out), the stdout/stderr from
processes will be written to the redirected file (not the console).
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Strösser, Bodo <bodo.stroes...@ts.fujitsu.com>
07/16/2009 11:43 AM
To
"'staf-users@lists.sourceforge.net'" <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Logging to STAFProc's stdout
Hi,
when a process produces some output on stdout or stderr, but the process does
not write
to file (<stdout/err>filename<stdout/err>) nor uses <returnstdout/err>, the
output is sent
to STAFProc's stdout.
Is there an option to switch this output off?
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