I have this line that I execute from php
sudo -u db2inst1 -s -- "/opt/ibm/db2/current/bin/db2 connect to PLC; /opt/ibm/db2/current/bin/db2 \"update EDU.contact set MOBILE_PHONE = '123'\""
it works fine on Sudo version 1.7.2.
Now I got new server with SUSE Linux Enterprise Server 11 (x86_64). There was no sudo so I installed it from repository (Sudo version 1.6.9p17) But know the above syntax doesn't work. It throws bin/bash: /opt/ibm/db2/current/bin/db2 connect to PLC; /opt/ibm/db2/current/bin/db2 "update EDU.contact set MOBILE_PHONE = '123'": No such file or directory
Any idea how I can make this work?
If I run /opt/ibm/db2/current/bin/db2 connect to PLC; /opt/ibm/db2/current/bin/db2 "update EDU.contact set MOBILE_PHONE = '123'" under db2inst1 account everythings work just fine.
