Using WGET to run a cronjob PHP

You could tell wget to not download the contents in a couple of different ways: wget –spider http://www.example.com/cronit.php which will just perform a HEAD request but probably do what you want wget -O /dev/null http://www.example.com/cronit.php which will save the output to /dev/null (a black hole) You might want to look at wget’s -q switch too … Read more

How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?

Solution: wget -r -np -nH –cut-dirs=3 -R index.html http://hostname/aaa/bbb/ccc/ddd/ Explanation: It will download all files and subfolders in ddd directory -r : recursively -np : not going to upper directories, like ccc/… -nH : not saving files to hostname folder –cut-dirs=3 : but saving it to ddd by omitting first 3 folders aaa, bbb, ccc … Read more

Using wget to recursively fetch a directory with arbitrary files in it

You have to pass the -np/–no-parent option to wget (in addition to -r/–recursive, of course), otherwise it will follow the link in the directory index on my site to the parent directory. So the command would look like this: wget –recursive –no-parent http://example.com/configs/.vim/ To avoid downloading the auto-generated index.html files, use the -R/–reject option: wget … Read more

How to download a Google Drive url via curl or wget

How about this method? When the file is such large size, Google returns a code for downloading the file. You can download the file using the code. When such large file is downloaded using curl, you can see the code as follows. <a id=”uc-download-link” class=”goog-inline-block jfk-button jfk-button-action” href=”/uc?export=download&amp;confirm=ABCD&amp;id=### file ID ###”>download</a> The query with confirm=ABCD … Read more