close
確認crontab 有帶起程式過,但是執行程式失敗。
將錯誤訊息導出,查看錯誤內容。
01 15 * * * /u1/ftpu/sh/runftpu U  1>/u1/ftpu/log1.txt 2>/u1/ftpu/log2.txt

查看

[root@MOS02:/u1/ftpu]#vi log2.txt
"log2.txt" 4 lines, 301 characters
exec(): 0509-036 Cannot load program /u1/ftpu/exe/ftpu because of the following errors:
        0509-150   Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
        0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
        0509-026 System error: A file or directory in the path name does not exist.

將關鍵字"Dependent module libstdc++.a" 上GOOGLE查詢。
都是建議:
then you need to add the following links: 
  cd /opt/freeware/lib
  ln -s /opt/freeware/lib/gcc///libstdc++.a
  ln -s /opt/freeware/lib/gcc///libgcc_s.a

where =powerpc-ibm-aix5.1.0.0 or higher version and =4.2.3 (your installed GCC version).

修改後還是無法用crontab帶起來。
又看到:
Modified the xcli shell script to include these in it's path

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$app_home/lib/:/opt/freeware/lib/"
LIBPATH="$LIBPATH:$app_home/lib/:/opt/freeware/lib/"

在shell中修改 LIBPATH參數:
 LIBPATH="$LIBPATH:$app_home/lib/:/opt/freeware/lib/:/Speedy/lib/:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/"
 
還式啟動不能 嘟著嘴 ( ̄)︿( ̄)
+++++++++++++++++++++++
最後想到應該用export指令設定參數內容。

 export LIBPATH="$LIBPATH:$app_home/lib/:/opt/freeware/lib/:/Speedy/lib/:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/"

終於可以用crontab帶起來了╮(╯▽╰)╭
 

 
 
arrow
arrow
    全站熱搜

    rangerll 發表在 痞客邦 留言(0) 人氣()