I responded to this question last Thursday. In case you didn't get the
response, here it is:
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
----- Forwarded by Sharon Lucas/Austin/IBM on 05/12/2008 10:27 AM -----
Sharon Lucas/Austin/IBM
05/08/2008 10:19 AM
To
<staf-users@lists.sourceforge.net>
cc
"'Rahul Wagh'" <[EMAIL PROTECTED]>
Subject
Re: [staf-users] Require User Input to display message using Echo command.
First, what operating system are you runnging the STAX service on? Running
a command named "Echo" doesn't work on Unix machines. You would need to
specify "echo".
Why aren't you using the capabilities provided by the STAX Monitor? The
STAX Monitor is a Java application that you can run to monitor the
progress of a STAX job while it's running so that you don't need to do
"hokey"/time-consuming stuff like running a process to echo a message.
Instead, you should use the <message> element in a STAX job to send a
message to the STAX Monitor (or <log message="1">). Please see the STAX
User's Guide for more information on using the STAX Monitor and for more
information on the <log> and <message> elements.
<log message="1">
'Testcases execution finished on %s.' %(topologyMachineName)
</log>
Or, if you didn't want to use the STAX Monitor for some reason, I suggest
you simply log your messages to the STAX Job User log using the <log>
element. You can then use the LOG service to QUERY the STAX Job User log
(or use the graphical interface provided by the STAX Monitor to view STAX
Job Users logs).
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
"Rahul Wagh" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05/08/2008 09:58 AM
To
<staf-users@lists.sourceforge.net>
cc
"'Rahul Wagh'" <[EMAIL PROTECTED]>
Subject
[staf-users] Require User Input to display message using Echo command.
Hi All,
I am using process STAF command to display the message in STAF console.
I
can't use Echo service because it's not useful to display the message in
same console (i.e. STAF console). I written process command in STAX job to
display message is as follows:-
<script>topologyMachineName
= 'ps0833'
<script>
<process>
<location>'%s'%(controllerMachine)</location>
<command mode="'shell'">'Echo Testcases execution
finished on %s.' %(topologyMachineName)</command>
</process>
1) But sometimes STAF halts while displaying message as shown in
diagram.
2) Where I given process command "Echo Testcases execution finished
on
ps0833".
3) I have to manually press enter then it comes out that process
command.
4) Then it displays message. For ex. In diagram scenario it displays
"Testcases execution finished on ps0833".
5) Then starts executing next STAF command successfully.
In my STAX job lot of display messages are there to trace the current
status of STAX job. This problem can be raise at any display message and
its
random. But most of time STAX job executes successfully but sometime when
problem raise STAX job execution halts there.
Please, let me know any pointer to such problem.
Thanks in advance.
Regards,
Rahul.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is
the property of Persistent Systems Ltd. It is intended only for the use of
the individual or entity to which it is addressed. If you are not the
intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in
error, please notify the sender and delete all copies of this message.
Persistent Systems Ltd. does not accept any liability for virus infected
mails.
[attachment "winmail.dat" deleted by Sharon Lucas/Austin/IBM]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users