Quote:
Originally posted by eddiebaby1023
For security, you should always use fully-qualified pathnames to the executables you use (eg, "/bin/grep", not just "grep") , to avoid people spoofing them by putting replacements earlier in your path.
|
thanks for the advice
Btw, I have encountered another problem.
I am able to execute some of the application native commands.
But notice that some of them actually need the additional modules (from the application /lib path) in order to execute the command properly.
How can i actually reflect in my script so that the application native commands know
where to find the needed module without problem while executed via crontab?
Below is actually some examples of the error i captured:
exec(): 0509-036 Cannot load program /myApp/bin/app_listing
because of the following errors: 0509-150 Dependent module libqcnt.so could not be loaded.
0509-022 Cannot load module libqcnt.so. 0509-026 System error:
A file or directory in the path name does not exist.