0
我對腳本很陌生,但我無法解決這個問題。我想在服務器上用lftp上傳竹編的結果。我用下面的命令:遠程服務器上的LFTP上傳
lftp sftp://user:[email protected] -e "put -O remoteFolder/ fileName.fileExtension; bye"
根據我的以下文件的理解,我應該是正確的(http://linux.about.com/od/commands/l/blcmdl1_lftp.htm):
put [-E] [-a] [-c] [-O base] lfile [-orfile]
Upload lfile with remote name rfile. If -o omitted, the base name of lfile is used as remote name. Does not expand wildcards, use mput for that.
-o specifies remote file name (default - basename of lfile)
-c continue, reput
it requires permission to overwrite remote files
-E delete local files after successful transfer (dangerous)
-a use ascii mode (binary is the default)
-O specifies base directory or URL where files should be placed
但是,相反我在竹任務日誌的輸出:
/bamboo+projectInfo/build/target/remoteFolder: No such file or directory
看起來,本地和遠程結構變得混雜起來。如果我只傳輸沒有remoteFolder信息的文件,它工作正常。但那不完全是我想要的。任何見解將不勝感激...
感謝您的回覆。我沒有嘗試,因爲在我看來,他們是發送者和接收者之間的混合。我會試一試,讓你知道。 我解決了使用SCP任務的問題,因爲我可以在特定情況下使用它們。 – sgirardin