wget で保存先ディレクトリとファイル名を指定する
wget -O "/home/dacelo/cron/" 'http://blog.dacelo.info
これで指定したディレクトリ内に保存されます。
何かをcronで定期的にチェックしたりする用途の場合、さらに工夫して、ファイル名が毎日変わるようにしましょう。
wget -O "/home/dacelo/cron/`date +%Y%m%d_%H%M%S`.html" 'http://blog.dacelo.info'
これで毎回、その日付と時間のファイル名でgetすることができます。
あとはこのコマンドをCronに設定すればOk。
広告
具体的には、Dynamic DO!.jp – ダイナミックDNS –でIP更新を申請するCronに使ったりします。
wget で保存先ディレクトリとファイル名を指定する (http://bit.ly/fvyDbM )
いい工夫ですね。アイディア頂戴します。 QT @daceloweb: wget で保存先ディレクトリとファイル名を指定する (http://bit.ly/fvyDbM )
Hi there! Someone in my Myspace group shared this website with us so I came to look it over.
I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my
followers! Great blog and excellent design and style.
You ought to take part in a contest for one of the finest
sites online. I will highly recommend this website!
I want to to thank you for this excellent read!! I absolutely loved every bit of it.
I have you book-marked to look at new stuff you post…
What a material of un-ambiguity and preserveness of valuable familiarity concerning unpredicted emotions.