看板 LinuxDev 關於我們 聯絡資訊
各位前輩好,剛碰script不久,google後也找不到我想要的寫法。 script 片段如以下 ftp -in $HOST | tee -a ftp.log 2>&1 << EOF user $NAME $PWD mput test_file.* bye EOF 我這樣寫,導出來的log並不會有下了mput test_file.*後 transfer 過程的紀錄,我想要從ftp登錄一直到傳輸哪個檔案(過程會有size/duration) 都記到log裡,請問我該怎麼改呢? 請前輩指點一下,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.231.66.225
dou0228:2>&1 要放在 $HOST 後面吧? 08/17 23:48