Link to home
Start Free TrialLog in
Avatar of xodos
xodos

asked on

script to add schedual content download automatically

dear sir
i want to make a script which take from a text file an address
http://www.yahoo.com
http://www.msn.com
http://www.sms.ac
http://www.cnn.com
etc
and add it to a schedual content download to isa server
any language can do that ?
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

> and add it to a schedual content download to isa server.
Excuse my ignorance, but how is this done? Do you know? (..because I don't).

As for the rest of it, a simple Batch script can do this:


@echo off
title URL Schedular

set inputFile=filename.txt

for /f "delims=" %%U in ("%inputFile%") do call :process "%%U"
goto :eof

:process
set line=%~1
:: Schedule the download of the '%line%' variable here.
exit /b

:eof


HTH :-)
Rob.
Avatar of xodos
xodos

ASKER

it will open isa server and add a schedual content download for each line it takes from the text file ,
the script must take a line from the text file and add it as a schedual content download .
look what i want to do :
i have a dns cache only server and isa server on the same computer
in dns server there are many site addresses ,
i want to take the address from the dns and add it to the schedual content download in isa server to be downloaded daily at 1:00 am ,
i can do it manually but there are millions of sites
so a script is very usable here
hope you can help me
thank you very much


ASKER CERTIFIED SOLUTION
Avatar of srikpen
srikpen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can comment
$ua->proxy('http', "http://www.company.com:80");

if you dont' have any proxy in between like:
#   $ua->proxy('http', "http://www.company.com:80");