mvbhavsar
6th June 2014, 06:18
Hi,
I have build a console application on Linux platform which connects to MySQL DB and fetches some data and displays it. I have successfully compiled and ran on Linux. Now I have created a shell script and calling this application in that script since this script will be deamon script which has start, stop, restart and status features. I have kept this script in /etc/init.d folder. Now when I run service myscript start command, this console application runs but gives following error
QOCIDriver: unable to create environment
The same script runs without service if called directly. Can somebody help me on this please.
Thanks
Manish
I have build a console application on Linux platform which connects to MySQL DB and fetches some data and displays it. I have successfully compiled and ran on Linux. Now I have created a shell script and calling this application in that script since this script will be deamon script which has start, stop, restart and status features. I have kept this script in /etc/init.d folder. Now when I run service myscript start command, this console application runs but gives following error
QOCIDriver: unable to create environment
The same script runs without service if called directly. Can somebody help me on this please.
Thanks
Manish