My Forum About > Automotive > Motorcycle
Register Search Today's Posts Mark Forums Read

Reply
  #1
Stonge
 
Default OT: Windows 2003 Scheduled task

Hi,

For the FOAK - can I schedule Windows 2002 to process a URL every day...

I need to trigger some ASP daily and I can't be arsed to keep doing it by
hand (and I'll be away for August - hopefully)...

I've tried to do the usual by setting up a scheduled task which launches IE
with the correct URL - which works a treat...

BUT, as the IE window will stay open, Windows doesn't see this task as being
completed, so when tomorrow comes, it still thinks yesterday's it running
and refuses to run it again (which I think is crap).

I can't close the IE using script and no-one will be available to close it
manually.

Any ideas?

--
Stonge


 
  #2
Preston Kemp
 
Default Re: OT: Windows 2003 Scheduled task

In article <2l5vnnF8sptlU1@uni-berlin.de>, Stonge says...
> Hi,
>
> For the FOAK - can I schedule Windows 2002 to process a URL every day...
>
> I need to trigger some ASP daily and I can't be arsed to keep doing it by
> hand (and I'll be away for August - hopefully)...
>
> I've tried to do the usual by setting up a scheduled task which launches IE
> with the correct URL - which works a treat...
>
> BUT, as the IE window will stay open, Windows doesn't see this task as being
> completed, so when tomorrow comes, it still thinks yesterday's it running
> and refuses to run it again (which I think is crap).
>
> I can't close the IE using script and no-one will be available to close it
> manually.
>
> Any ideas?


Can't you just put <META HTTP-EQUIV=Refresh CONTENT="86400(or however
many seconds there are in a day)"> in the asp header?

--
Preston.

http://www.muddystuff.co.uk
Off-road classifieds

'02 MV Senna '96 Tiger '79 Fantic 250
http://groups.yahoo.com/group/uk_tiger_rides
 
  #3
Stonge
 
Default Re: OT: Windows 2003 Scheduled task

"Preston Kemp" wrote:

> Can't you just put <META HTTP-EQUIV=Refresh CONTENT="86400(or however many

seconds there are in a day)"> in the asp header?

Nope...

There are more things to consider...

If the IE gets closed (some tit is bound to close it), then the process will
stop.

If the server gets reboot, IE will close. If I schedule IE to launch on
reboot, then the process will run twice - unless I code in checks - but...I
can get around all this by coding the ASP to run in the global.asa and
writing to a text file when it's run so it doesn't run again...

But simple scheduling has to be the easier option. I had wanted to do this
before I went to bed tonight, but it looks like it can wait until tomorrow
now.

I've also tried WSH (using VBS), but Windows 2003 doesn't support this as I
expected (in-so-far as I can't get it to bloody work!

--
Stonge


 
  #4
Muck
 
Default Re: OT: Windows 2003 Scheduled task

Stonge wrote:

> Hi,
>
> For the FOAK - can I schedule Windows 2002 to process a URL every day...
>
> I need to trigger some ASP daily and I can't be arsed to keep doing it by
> hand (and I'll be away for August - hopefully)...
>
> I've tried to do the usual by setting up a scheduled task which launches IE
> with the correct URL - which works a treat...
>
> BUT, as the IE window will stay open, Windows doesn't see this task as being
> completed, so when tomorrow comes, it still thinks yesterday's it running
> and refuses to run it again (which I think is crap).
>
> I can't close the IE using script and no-one will be available to close it
> manually.
>
> Any ideas?
>


Can't you get anything like cron for Win?
 
  #5
Stonge
 
Default Re: OT: Windows 2003 Scheduled task

"Muck" wrote:

> Can't you get anything like cron for Win?


It sort of has it already - the scheduler, but it's weak in comparison, and
certainly doesn't seem able to do what I want without me writing an exe for
it call (easy solution lies in asp).

Thanks anyway.

--
Stonge


 
  #6
Rope
 
Default Re: OT: Windows 2003 Scheduled task

Stonge spoke:
> For the FOAK - can I schedule Windows 2002 to process a URL every day...
>
> I need to trigger some ASP daily and I can't be arsed to keep doing it by
> hand (and I'll be away for August - hopefully)...


A VB form could be knocked up in under an hour with an explorer window with
hard-coded URL and a timer.

--
Rob_P
UKRM(at)indqualtec.co.uk
uppercase(d) BBIWYMC#1 BOG#11? MRO#31 IBCDBBB#1(kotl)
FJ1200, CCM130
Just call me Charlie Brown

 
  #7
Valery Kondakoff
 
Default Re: OT: Windows 2003 Scheduled task

"Stonge" <stonge@brainbashers.com> wrote in message news:<2l6114F9066jU1@uni-berlin.de>...

> There are more things to consider...
> If the IE gets closed (some tit is bound to close it), then the process will
> stop.
> If the server gets reboot, IE will close. If I schedule IE to launch on
> reboot, then the process will run twice - unless I code in checks - but...I
> can get around all this by coding the ASP to run in the global.asa and
> writing to a text file when it's run so it doesn't run again...


Take a look at nnCron (http://www.nncron.ru). This small tool can
start programs at user specifyed interval and can watch processes,
windows, user logon etc... as well.

There is also nnCron LITE - a freeware windows cron/anacron port.

HTH!
 
  #8
Jeremy
 
Default Re: OT: Windows 2003 Scheduled task

In article <2l5vnnF8sptlU1@uni-berlin.de>, Stonge says...
> Hi,
>
> For the FOAK - can I schedule Windows 2002 to process a URL every day...
>
> I need to trigger some ASP daily and I can't be arsed to keep doing it by
> hand (and I'll be away for August - hopefully)...
>
> I've tried to do the usual by setting up a scheduled task which launches IE
> with the correct URL - which works a treat...
>
> BUT, as the IE window will stay open, Windows doesn't see this task as being
> completed, so when tomorrow comes, it still thinks yesterday's it running
> and refuses to run it again (which I think is crap).
>
> I can't close the IE using script and no-one will be available to close it
> manually.
>
> Any ideas?
>
>

Is the desired effect simply to 'execute' the code behind the page? I am
assuming this to be the case and that you don't actually need to see the
web page.. so is there a 'wget' type equivalent for windows?

I see one here (for win95) :
http://www.interlog.com/~tcharron/wgetwin.html

This one might be what you need:
http://www.gnu.org/software/wget/wget.html#downloading

On the other hand I may of course have completely misunderstood your
requirement.

HTH

cheers


--

jeremy
['75 RD250A ] | ['02 Fazer 600 in blue]
_______________________________________
jeremy at hireserve dot com

 
  #9
Simian
 
Default Re: OT: Windows 2003 Scheduled task

Stonge wrote:
> Hi,
>
> For the FOAK - can I schedule Windows 2002 to process a URL every day...
> I need to trigger some ASP daily and I can't be arsed to keep doing it by
> hand (and I'll be away for August - hopefully)...
> I've tried to do the usual by setting up a scheduled task which launches IE
> with the correct URL - which works a treat...
> BUT, as the IE window will stay open, Windows doesn't see this task as being
> completed, so when tomorrow comes, it still thinks yesterday's it running
> and refuses to run it again (which I think is crap).


Is it only WinXP that has the 'stop task after X hours:mins' option then?

--
ZX7RR.
 
  #10
TonyF
 
Default Re: OT: Windows 2003 Scheduled task

"Simian" <Simian@in_valid.semi-evolved.org> wrote in message
news:10esno510rs8n20@news.supernews.com...
> Stonge wrote:
> > Hi,
> >
> > For the FOAK - can I schedule Windows 2002 to process a URL every day...
> > I need to trigger some ASP daily and I can't be arsed to keep doing it

by
> > hand (and I'll be away for August - hopefully)...
> > I've tried to do the usual by setting up a scheduled task which launches

IE
> > with the correct URL - which works a treat...
> > BUT, as the IE window will stay open, Windows doesn't see this task as

being
> > completed, so when tomorrow comes, it still thinks yesterday's it

running
> > and refuses to run it again (which I think is crap).

>
> Is it only WinXP that has the 'stop task after X hours:mins' option then?
>


Nope its on the settings tab of the task settings in 2003 as well.
"stop the task if its runs for:X"
etc also extra settings such as
"stop task if computers ceased to be idle"
etc etc

Tony


 
  #11
James Austin
 
Default Re: OT: Windows 2003 Scheduled task


"Simian" <Simian@in_valid.semi-evolved.org> wrote in message
news:10estpfbmfdi3f0@news.supernews.com...

> I mean, what if my bank hires some-one like that?



Obviously you don't bank with the Bank of Scotland.

Oist
CBF600


 
  #12
dwb
 
Default Re: OT: Windows 2003 Scheduled task

Simian wrote:
>
> I mean, what if my bank hires some-one like that?


That's a joke right? Or do you have a bank that actually has a clue?




 
  #13
Simian
 
Default Re: OT: Windows 2003 Scheduled task

dwb wrote:
> Simian wrote:
>>
>> I mean, what if my bank hires some-one like that?

>
> That's a joke right?


Very astute.


> Or do you have a bank that actually has a clue?


Or possibly not.

--
ZX7RR.
 
  #14
HooDooWitch
 
Default Re: OT: Windows 2003 Scheduled task

"Stonge" <stonge@brainbashers.com> somehow managed to post:

>Hi,
>
>For the FOAK - can I schedule Windows 2002 to process a URL every day...
>
>I need to trigger some ASP daily and I can't be arsed to keep doing it by
>hand (and I'll be away for August - hopefully)...
>
>I've tried to do the usual by setting up a scheduled task which launches IE
>with the correct URL - which works a treat...
>
>BUT, as the IE window will stay open, Windows doesn't see this task as being
>completed, so when tomorrow comes, it still thinks yesterday's it running
>and refuses to run it again (which I think is crap).
>
>I can't close the IE using script and no-one will be available to close it
>manually.
>
>Any ideas?


You could just get a browser to trigger the ASP for you?

In IE
Tools...
Synchronize...
Properties...
Schedule...

No idea how robust it'd be.

--
HooDooWitch (NaCl - Gratis)

http://www.usefilm.com/photographer/51251.html
 
  #15
Stonge
 
Default Re: OT: Windows 2003 Scheduled task

"Simian" wrote:

> What worries me is that I - a mere occasional user of windows - found this

in a minute or so of looking, and yet many people who are paid to know
about MS products seem completely unable to manage the simplest task with
it.

I'm a programmer...my network admin was probably in bed, so I thought I'd
look myself...



--
Stonge


 
Reply
Thread Tools


Powered by vBulletin

SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.