solaris 用不同终端,执行结果不同
env: solaris81. 用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有,执行权限也有)用的是一个相对路径而已, 如改为决定路径,问题解决。
问题原因?
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/68079/showart_1138746.html
页:
[1]