bash script not running in nohup but working fine as stand alone
This question already has an answer here:
You may try "source ./abc.config" just to make sure is looking into the same folder.
--Or, depending of the complexity of executing mode/environment--
before sourcing you may detect the folder the script is running into, store that into a variable and use it as a prefix to your abc.config like
DIRN=`dirname $0`
source $DIRN/abc.config
链接地址: http://www.djcxy.com/p/9758.html