Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Cron webpage download
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 1st July 18:16
blimeyoreilly
External User
 
Posts: 1
Default Cron webpage download


Hi,

Is there a way to download a webpage to a file in Redhat linux without
using the GUI?

I want to set up a cronjob to download a webpage every two hours.

Many thanks
BOR
  Reply With Quote


  sponsored links


2 1st July 18:16
tore skogly
External User
 
Posts: 1
Default Cron webpage download


Like this:

wget http://your.favorite.url/page.html

--
Regards,
ToreS
  Reply With Quote
3 1st July 18:16
matt giwer
External User
 
Posts: 1
Default Cron webpage download


# if I might add ...
# and hoping I don't screw it up writing it on the fly

i=`expr 1`
j=`expr 2`

# i less than j
while [ $i -lt $j ] do

# 60 secs * 60 mins * 2hrs
sleep 7200
done

Saving them all takes a bit more.

--
No one could ever accuse Judaism of being a religion of peace.
-- The Iron Webmaster, 3690
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Mission Accomplished http://www.giwersworld.org/opinion/mission.phtml a12
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666