env: solaris8
1. 用puTTy login solaris:
bash-2.03$
bash-2.03$
bash-2.03$ csh gen_soa_report.csh
$BIN: /sbcimp/run/pkgs/WM_COPSAU_DEV/prod/shared/bin/cops2soa
DAT: /sbcimp/dyn/data/WM_COPSAU_DEV/dat/out/cops2soa
WRK: /sbcimp/dyn/data/WM_COPSAU_DEV/dat/tmp/cops2soa
LOC: AU
$FILENAME: WMAU_COPS2SOA.dat
======== 21/08/2008 20:50:07 - order2soa Report job started
REPORT_DATE: 20080821 2008-08-21
generate report...
bcp data...
add header and trailer...
WMAU_COPS2SOA.dat
HASH_VALUE: 6
send data file...
21/08 20:50:08 - error while sending file...
enrich_scp: Command not found
======== 21/08/2008 20:50:09 - order2soa Report job stopped
bash-2.03$
2. 用Xmanager登錄solaris,開一個shell term:
bash-2.03$ csh gen_soa_report.csh
$BIN: /sbcimp/run/pkgs/WM_COPSAU_DEV/prod/shared/bin/cops2soa
DAT: /sbcimp/dyn/data/WM_COPSAU_DEV/dat/out/cops2soa
WRK: /sbcimp/dyn/data/WM_COPSAU_DEV/dat/tmp/cops2soa
LOC: AU
$FILENAME: WMAU_COPS2SOA.dat
======== 21/08/2008 20:51:59 - order2soa Report job started
REPORT_DATE: 20080821 2008-08-21
generate report...
bcp data...
add header and trailer...
WMAU_COPS2SOA.dat
HASH_VALUE: 6
send data file...
21/08 20:52:02 - error while sending file...
Thu Aug 21 20:52:01 GMT 2008
/usr/bin/scp -B /sbcimp/dyn/data/WM_COPSAU_DEV/dat/out/cops2soa/WMAU_COPS2SOA.da
t cop_doac@hk1d317syb:download/WMAU_COPS2SOA.dat
warning: You have no controlling tty. Cannot read confirmation.
warning: Authentication failed.
Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.
).
lost connection
======== 21/08/2008 20:52:02 - order2soa Report job stopped
bash-2.03$
summary: 用puTTy時, 也是telnet方式login,經常出現找不command錯誤(command有,執行權限也有)用的是一個相對路徑而已, 如改為決定路徑,問題解決。