Linked by Thom Holwerda on Tue 27th Feb 2007 22:23 UTC
Thread beginning with comment 217567
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.





Member since:
2005-07-06
Thanks, I've been wondering how to do that for AGES! (well, figuratively)
No prob. There are about million cool little tricks like that which can be done with wget. E.g., need to execute a remote PHP file on regular schedule? Just setup cron (or hell, even Windows task scheduler + wget.exe will work) to wget the php file using the --spider option (loads the file only, doesn't download it to disk).
It's also great for doing backups of websites via FTP. It can accept ftp URLs (ftp://user:password@ftp.server.com), it will get an entire site recursively using the --mirror option, and there's also the --timestamping option - which will only download files when the remote copy is newer than the local copy (so you can have up-to-date backups, without having to download the entire site each time).
I think it can even be used to automate form posting (or to test a form processing script for vulnerabilities by attempting to pass data to it directly). Although I've largely used curl for that task.