2015-01-12 112 views

回答

1

嘗試這樣的:

#!/bin/sh 
cd mnt/sdcard 
wget "[email protected]" 
當你在最後一行調用腳本 "[email protected]"

incudes你的腳本作爲參數傳遞給wget的名稱後添加任何paramters。因此,該腳本就像wget那樣將文件下載到mnt/sdcard目錄中。

+1

你應該包括解釋這個問題的一些解釋。 – Barmar

3

您需要給wget一個URL以「get」。

0

如果要將文件保存到指定位置,可以使用wget的-O, --output-document=FILE選項指定輸出文件。例如:

wget -O /mnt/sdcard/example.html http://www.stackoverflow.com