Hi,

I am automating the DB2 interface to our product.

I have started the staf as root, now I am trying to run the DB2 commands using 
staf process.  I ran the following command:

staf local process start shell "su - db2inst1 -c %C" command 
"/home/db2inst1/sqllib/bin/db2" parms "list database directory" username 
db2inst1 returnstdout returnstderr wait

but it is giving error:

Response
--------
{
  Return Code: 1
  Key        : <None>
  Files      : [
    {
      Return Code: 0
      Data       :
    }
    {
      Return Code: 0
      Data       : standard in must be a tty

    }
  ]
}

I tried googling for this error, but couldn't get any help.  I would appreciate 
if any of the experts help me in resolving this issue.

Regards
Sanjeev


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to