3/14/2023 0 Comments Shell program for macI've written before about how to run a Mac Unix command on a schedule, so I won't repeat that here. maybe I should call it "stopwatch time".) The time command's user and sys times are important in other contexts, but not here. (And that clock had super-low resolution like this. It's the same time you'd measure if you were looking at a clock on the wall. In this case the only thing I'm interested in is the 'real' output, as this refers to what I call "wall clock time". (See below for how it is run every two minutes.) The Unix time command that wraps around the curl command gives me output information like this so I can see how long the download took: This script downloads the given web page one time. # write additional footer information to the log file Time (curl -connect-timeout 100 $URL) > $FILE 2> # write header information to the log fileĮcho "START-" > $FILE # link to this web page without the 'nofollow' tag if youįILE=/Users/Al/Projects/TestWebsite/download.out # released under the creative commons share-alike license: To that end, I created the following shell script, and then ran it from my Mac every two minutes: I’ve been having a problem with a GoDaddy website lately (see my GoDaddy 4GH performance problems page, and in an effort to get a better handle on both (a) GoDaddy website downtime and (b) GoDaddy 4GH performance, I wrote a Unix shell script to download a sample web page from my website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |