1
vote
2answers
3k views

Running a command a different user using `su` gives “standard in must be a tty”

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 ...