【发布时间】:2014-09-18 07:50:45
【问题描述】:
我创建了一个脚本script.sh,其中包含
./ecc start pricingUpdater & >> /home/eceuser/Muthu/details/Latest.txt
ecc 是另一个脚本。
如果我通过简单地调用 ./script.sh 手动运行脚本,我可以启动该实用程序:
Starting Oracle Communication Elastic Charging Controller 11.2.0.1 ...
-- Node 'pricingUpdater' started with PID 10705
^[[1m===>^[[m [{GridEventImpl
status: true
node: PricingUPdater node pricingUpdater on Host 10.180.85.16
details: [pid:10705, state:running]
}]
但如果我尝试通过crontab 运行相同的脚本,我会得到:
Starting Oracle Communication Elastic Charging Controller 11.2.0.1 ...
所以该实用程序没有启动。
【问题讨论】:
-
您是否在脚本中尝试过 ecc 的完整路径?
-
我想你的意思是
./ecc .. pricingUpdater >> ...Latest.txt & -
不,我的意思是像 /this/is/full/path/to/ecc 这样的完整路径
-
我尝试了全放,但它也不起作用