"$d_SysMaint""Linux/curl - [exist, [up, down]load] [files, url] notes.txt" www.BillHowell.ca 02Oct2020 initial based on forgotten scripts somewhere 08******08 download IJCNN2021 video : $ curl -o '/media/bill/VIDEOS/Neural Net videos/2021 IJCNN Shenzen, China online/262.mp4' 'https://confcats-event-sessions.s3.amazonaws.com/ijcnn21/videos/262.mp4' >> NYET! use wget https://www.howtogeek.com/447033/how-to-use-curl-to-download-files-from-the-linux-command-line/ 08******08 ?date? curl -> you must be connected to the internet!!! https://www.shellhacks.com/check-website-availability-linux-command-line/ Check a Website Availability from the Linux Command Line Posted on Tuesday December 27th, 2016 by admin Check a website availability with CURL Execute the following command to check whether a web site is up, and what status message the web server is showing: $ curl -Is http://www.shellhacks.com | head -1 HTTP/1.1 200 OK Status code ‘200 OK’ means that the request has succeeded and a website is reachable. Here is an another example that shows you how curl displays different status codes. $ curl -Is http://shellhacks.com | head -n 1 HTTP/1.1 301 Moved Permanently +-----+ man curl -I, --head (HTTP FTP FILE) Fetch the headers only! HTTP-servers feature the command HEAD which this uses to get nothing but the header of a document. When used on an FTP or FILE file, curl displays the file size and last modification time only. -s, --silent Silent or quiet mode. Don't show progress meter or error messages. Makes Curl mute. It will still output the data you ask for, potentially even to the terminal/stdout unless you redirect it. 08********08 02Oct2020 $ find "/media/bill/PROJECTS/Qnial/MY_NDFS/" -maxdepth 1 -type f -name "*.ndf" | tr \\n \\0 | xargs -0 -IFILE grep --with-filename --line-number "curl" "FILE" /media/bill/PROJECTS/Qnial/MY_NDFS/file_ops.ndf:480: host link 'curl --output "' pname '" "' URLname '" ' ; $ find "/media/bill/PROJECTS/bin/" -maxdepth 1 -type f -name "*.sh" | tr \\n \\0 | xargs -0 -IFILE grep --with-filename --line-number "curl" "FILE" /media/bill/PROJECTS/bin/cloud work file.sh:26:curl "$url$fname" -o "$d_cloud$fname" /media/bill/PROJECTS/bin/cloud work file.sh:40:curl -T "$d_cloud$fname" "$url$fname" $ curl -Is "http://www.BillHowell.ca/index.html" HTTP/1.1 200 OK Date: Fri, 02 Oct 2020 18:03:28 GMT Server: Apache Last-Modified: Tue, 22 Sep 2020 23:30:33 GMT ETag: "2198-5afef5a79a1bb" Accept-Ranges: bytes Content-Length: 8600 Vary: Accept-Encoding,User-Agent Content-Type: text/html; charset=utf-8 $ curl -Is "http://www.BillHowell.ca/index.html" | head -1 HTTP/1.1 200 OK QNial : qnial> host_result 'curl -Is "http://www.BillHowell.ca/index.html" | head -1' +---------------+ |HTTP/1.1 200 OK| +---------------+ # enddoc