I am using STAF to automate db2 interface testing with our product. I am able to run the command using
su - db2inst1 -c "/home/db2inst1/sqllib/bin/db2 list database directory" but when I try the same command with the staf interface I am getting the error:
standard in must be a tty
I commented the "Defaults requiretty" in /etc/sudoers, but still have the same issue.