![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "too big" and "not enough memory" errors in shell script | jerardfjay | AIX | 11 | 03-16-2009 11:09 PM |
| shell script to replace a line contain an unkown pattern starting with "aaa, bbb" | Dingrong | UNIX for Dummies Questions & Answers | 2 | 10-07-2008 10:06 AM |
| passing a list of dynamic names to a "PS" command in shell script? | sachin.tendulka | Shell Programming and Scripting | 3 | 11-21-2007 04:18 AM |
| Q: Recording shell script screen output using "script" command ? | lalfonso.gomez | Shell Programming and Scripting | 4 | 01-18-2007 09:31 PM |
| No utpmx entry: you must exec "login" from lowest level "shell" | peterpan | UNIX for Dummies Questions & Answers | 0 | 01-18-2006 04:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with shell script "wget"
I am trying to gather a list of files (products) every 30 days that have been added to a website. First it will delete the files that are already in the directory from 30 days ago. Then it will it gather the updated files (products) from the webstie and it will place them in a directory. Lastly it will tar the files that are in the directory. If anyone knows how to get this done your assistance would be appreciated.
|
|
||||
|
Quote:
Quote:
|
|
||||
|
The content is on our intranet and I am unable to disclose the specifics. It is bascially a website were analyst post their findings. I need to pull these posting every 30 days into a directory and tar them. Here is what i have come up with so far:
#! /bin/sh #script.sh [ -z $1 ] && " Defaulting to $ (date +%F)" && DATES=$ (date +%F) || DATE="1" touch -d "1" /tmp/OLD touch -r /tmp/OLD -F 2592000 /tmp/NEW # /tmp/NEW 30 days newer than /tmp/OLD find . -name * -newer /tmp/OLD ! -newer /tmp/NEW ! -size 0 rm -f /tmp /OLD /tmp/NEW/NEW I have to figure out how to incorporate either a get or wget to pull the updates. I hope this makes it a little clearer. Thanks for the initial response. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|