![](/img/trans.png)
[英]How to run shell script located on Linux server from Windows environment?
[英]FTP issue from Linux to windows server through shell script
我們有一個自動化的.ksh 腳本將文件從 Linux 服務器傳輸到 windows 服務器
使用的 ftp 命令是:
Cd /target/sieb //path in local Linux server
ftp -inv $ftpserv
user $FTPUSER $FTPPW
cd /sieb/app
mput sgt*.*
此腳本失敗並出現錯誤:ftp:local: sgt*.* no such file or directory found 錯誤。
這個腳本運行了這么多年沒有任何問題,但在 Linux 操作系統修補后失敗。在與操作系統團隊核實后,我們被告知 Suse 12 操作系統版本默認指向 lftp,之前它是 pftp
我對 ftp 命令不太熟悉。解決該問題的任何建議都會有所幫助。
謝謝你。
給出要使用的 ftp 程序的完整路徑。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.