Script to download file using wget

Feb 13, 2007 1 Replies

Hi



I need a Shell script that will download a text file every second from a http server using wget.



Can anyone provide me any pointers or sample scripts that will help me go about this task ???



regards



techie



#!/bin/bash cd /download/directory while true ; do wget http://some/file/somewhere.txt sleep 1 done

HTH

-- Lew

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required