Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Windows Task Scheduler

Thread Tools
 
Search this Thread
 
Old 24 September 2002, 01:50 PM
  #1  
netclectic2
Scooby Regular
Thread Starter
 
netclectic2's Avatar
 
Join Date: Mar 2001
Posts: 218
Likes: 0
Received 0 Likes on 0 Posts
Question

Anybody know how i can setup a task to execute a php script with no screen output that will kill itself when the script is finished?
Old 24 September 2002, 02:02 PM
  #2  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Post

Winat from the NT Resource Kit? Or equivilant these days...
Old 24 September 2002, 02:10 PM
  #3  
netclectic2
Scooby Regular
Thread Starter
 
netclectic2's Avatar
 
Join Date: Mar 2001
Posts: 218
Likes: 0
Received 0 Likes on 0 Posts
Post

Haven't used Winat, is it specifically for NT?.

It's most likely this will be happening on XP or 2000 server.
Old 24 September 2002, 02:14 PM
  #4  
WillieF
Scooby Regular
 
WillieF's Avatar
 
Join Date: Oct 1999
Posts: 778
Likes: 0
Received 0 Likes on 0 Posts
Talking

Type AT /? at a command prompt and see what happens.. it should be self explanatory
Old 24 September 2002, 02:19 PM
  #5  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Cool

Hmm - according to this its not available for W2K/XP

Guess Task Scheduler Wizard doesn't do the job then?
Old 24 September 2002, 02:24 PM
  #6  
WillieF
Scooby Regular
 
WillieF's Avatar
 
Join Date: Oct 1999
Posts: 778
Likes: 0
Received 0 Likes on 0 Posts
Talking

At should be available. can't remember am looking at a stack of nt servers at the mo'
Old 24 September 2002, 02:40 PM
  #7  
netclectic2
Scooby Regular
Thread Starter
 
netclectic2's Avatar
 
Join Date: Mar 2001
Posts: 218
Likes: 0
Received 0 Likes on 0 Posts
Post

Yes AT is available, as is the Windows Task Scheduler wizard.
I can set the taks up ok, but how can i stop it from opening a window?

Trending Topics

Old 24 September 2002, 02:41 PM
  #8  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Post

No Willie

WinAT not available for W2K/XP. You posted whilst I was checking

AT is available & scheduler wizard thingy.

Them servers is obviously addling your mind

Old 24 September 2002, 02:59 PM
  #9  
netclectic2
Scooby Regular
Thread Starter
 
netclectic2's Avatar
 
Join Date: Mar 2001
Posts: 218
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Ok, i think i've got it to work.

I've got one batch file start_task.bat with the following
"start /min c:\task\task.bat"

and task.bat has
"start e:\dev\task\task.php"

and i've set it to stop the task if it runs for more than 1 minute, which should be plenty long enough (in fact it's probably longer than the php timeout).

i get a quick flash of a window when the task runs but i think i can live with that.


thanks for your help guys.
Old 24 September 2002, 03:30 PM
  #10  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Post

You should be able to get it to run as a service as well, so be invisible to the user - but can't remember how ATM
Old 24 September 2002, 03:38 PM
  #11  
netclectic2
Scooby Regular
Thread Starter
 
netclectic2's Avatar
 
Join Date: Mar 2001
Posts: 218
Likes: 0
Received 0 Likes on 0 Posts
Post

That would be nice, but it has to be setup by 'end users' so probably best to keep them well clear of services
Old 24 September 2002, 03:45 PM
  #12  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Cool

Make an installer then & REG it in the setup
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Windows Task Scheduler



All times are GMT +1. The time now is 09:00 AM.