What is the purpose of the "-delete-after" wget option?

Did I encounter the "-delete-after" option when I read the wget man page? What is the purpose of providing such an option? Is it just for testing, is the page approved for download? Or maybe there are other situations where this option is useful, I hope you guys can give me some advice.

+5
source share
4 answers

Regarding your comments above. I provide some examples of how we use it. We have several websites running on Rackspace Cloud Sites, which is a managed cloud solution. We do not have access to regular cron.

WordPress, WP wp-cron.php. , . , wp-cron.php WordPress wget. , , --delete-after wget (wget ... > /dev/null 2>&1 ), , wget, script.

SugarCRM, , cron script . wget . - cron-. , , php , wget.

cron- - wget --delete-after http://example.com/cron.php?parameters=if+needed

+4

wget (cron) -, . --delete-after .

+1

, , -.

, , , , , , - - script "-r" "-m" wget.

- , - .

"-delete-after", , , , .

0

Sometimes you only need to visit a website to set an IP address - say, if you start your own dyn dns service.

0
source

All Articles