chrisdar
2005-05-20, 09:31 AM
使用者目錄式 /home/test
目前在 ~/mytest 下有兩個檔案
第一個是 myput.txt 內容是
open -u anonymous,anonymous -p 21 127.0.0.1
lcd /home/test/tmp
mput -c *.*
第二個是 test.sh 內容是
#!/bin/bash
lftp -f ./myput.txt
然後在指令模式 的 ~/mytest 目錄下
下達 lftp -f myput.txt 正常
下達 sh test.sh 他說找不到檔案
這該如何解決
贊助商連結
目前在 ~/mytest 下有兩個檔案
第一個是 myput.txt 內容是
open -u anonymous,anonymous -p 21 127.0.0.1
lcd /home/test/tmp
mput -c *.*
第二個是 test.sh 內容是
#!/bin/bash
lftp -f ./myput.txt
然後在指令模式 的 ~/mytest 目錄下
下達 lftp -f myput.txt 正常
下達 sh test.sh 他說找不到檔案
這該如何解決
贊助商連結