【发布时间】:2016-12-01 09:46:33
【问题描述】:
我想创建一个 Windows 批处理文件来在 Linux 上运行的 Sybase 数据库上执行查询。
批处理文件:
plink.exe -ssh sybase@<IP> -pw <PW> -m C:\scripts\script1.bat -t > C:\scripts\testing.log
script1.bat:
echo --- query 1 -----
cd /sybase/OCS-15_0/bin/
isql -Uimaldb_bkp -Pstart_bkp -SLinux1 -Dimaldb
sp_helpsegment
go
exit
在isql 命令之前它工作正常并在testing.log 中给出输出:
--- 查询 1 ----- bash: isql: 找不到命令 bash: sp_helpsegment: 找不到命令 bash: go: 找不到命令
请指教。
【问题讨论】: