Downloading Java JDK on Linux via wget is shown license page instead

Works as of December 23rd, 2021 for JDK 17 wget –no-check-certificate -c –header “Cookie: oraclelicense=accept-securebackup-cookie” https://download.oracle.com/java/17/archive/jdk-17.0.1_linux-x64_bin.rpm Works as of July 27th, 2021 for JDK 16 wget –no-check-certificate -c –header “Cookie: oraclelicense=accept-securebackup-cookie” https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-x64_bin.rpm Works as of November 5th, 2020 for JDK 15 wget –no-check-certificate -c –header “Cookie: oraclelicense=accept-securebackup-cookie” https://download.oracle.com/otn-pub/java/jdk/15.0.1+9/51f4f36ad4ef43e39d0dfdbaf6549e32/jdk-15.0.1_linux-x64_bin.rpm Works as of 07-11-2020 for JDK 14 … 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 specify the download location with wget?

From the manual page: -P prefix –directory-prefix=prefix Set directory prefix to prefix. The directory prefix is the directory where all other files and sub-directories will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory). So you need to add -P /tmp/cron_test/ (short form) or –directory-prefix=/tmp/cron_test/ (long form) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)