【发布时间】:2014-05-14 13:04:48
【问题描述】:
我在 Windows 7 中使用 plink 运行批处理文件 (export.bat) 以在远程 Linux 服务器计算机中执行脚本,但出现此错误:
./test.sh: line 3: back.sh: command not found
批处理文件:
@echo off
cls
plink 1.1.10.11 -l user -pw pass "bash ./test.sh"
远程服务器中的脚本:
#!/bin/sh
cd /path/path/path
script --table filename--filebase /path/path/path/path
exit
【问题讨论】:
标签: linux windows bash shell batch-file