wget in a cron job?Originally posted by: GeoffS
I want to grab the contents of a few webpages automatically around midnight every night and save them to a file. What is the easiest way to do this, aside from staying up until midnight every night?
Thanks!
Geoff
Originally posted by: jliechty
wget in a cron job?Originally posted by: GeoffS
I want to grab the contents of a few webpages automatically around midnight every night and save them to a file. What is the easiest way to do this, aside from staying up until midnight every night?
Thanks!
Geoff![]()
Originally posted by: GeoffS
That stuff sounds like LinuxI'm not well versed in Linux... yet
I understand that cron (*nix) = at (Windows), and the pages are pure text, so no complications there. I wouldn't mind a Windows solution, but if someone wants to take the time to give me the *nix basics, I'd appreciate that too!
Geoff
Originally posted by: jliechty
Just a quick question now; what's the UNIX utility that can do search & replace on files? I know grep can be used for searching for stuff, but what does the replacing? I mean, stuff like stripping out the heading and footing HTML, removing the table row and data tags, and stripping commas from the numbers so they won't be confused with the commas that I insert in place of the <td>...</td> tags to separate the data items before importing to Access. All this I do now in UltraEdit-32, but I must do many manual search&replace operations, each time filling in the dialog box with a different thing to remove or replace. That's a big PITA to do early each morning, and I often screw it up and have to start over; a script would be much easier.![]()
Hmm, guess it's time for me to learn some regular expressions and Read Some ****ing Man Pages.Originally posted by: n0cmonkey
sed or awk, both of which I know very little about.Originally posted by: jliechty
Just a quick question now; what's the UNIX utility that can do search & replace on files? I know grep can be used for searching for stuff, but what does the replacing? I mean, stuff like stripping out the heading and footing HTML, removing the table row and data tags, and stripping commas from the numbers so they won't be confused with the commas that I insert in place of the <td>...</td> tags to separate the data items before importing to Access. All this I do now in UltraEdit-32, but I must do many manual search&replace operations, each time filling in the dialog box with a different thing to remove or replace. That's a big PITA to do early each morning, and I often screw it up and have to start over; a script would be much easier.