Hello,
I'm trying to run the following <process> element but it hangs:
<script>
target = 'atlantis10.in.ibm.com'
command = '/opt/IBM/db2/V9.7_IVT/bin/db2ilist'
</script>
<message log='1' level='"trace"'>
'staf %s PROCESS Start Shell Command %s Wait SameConsole ReturnStdOut
> ReturnStdErr' % \
( target, command )
</message>
<process>
<location>target</location>
<command mode='"shell"'>command</command>
<console use='"same"'/>
<returnstdout/>
</process>
<message>
'Process element completed!'
</message>
Note that its equivalent STAF command below runs successfully:
> C:\>staf atlantis10.in.ibm.com PROCESS Start Shell Command
> /opt/IBM/db2/V9.7_IVT/bin/db2ilist Wait SameConsole ReturnStdOut
> ReturnStdErr
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : kavyarao
nsequtf
venkat
abaky
nseqlee
> }
{
Return Code: 0
Data :
}
]
}
I don't see errors in the JVM log. What can be the problem?
Thanks
--
Ahmed Mostafa Abdel-Baky
Associate Software Engineer
DB2 NSE Support
Cairo Technology Development Center
IBM Egypt
Mobile: 0110887370
Office: +202-35361459
E-mail: ab...@eg.ibm.com
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users