Solved

Scheduled tasks problem

Posted on 2009-05-15
6
300 Views
Last Modified: 2013-11-10
Hi there,
I'm having trouble with a scheduled task I created on a Windows 2003 server machine.  The task is supposed to launch and executable file from a third party software vendor.  However the task just sits in the 'running' state and does not run.  When I set the task up I created a dedicated service account for it with domain admin rights and this account has full access to the executable file.  

I contacted the software vendor who say that the user has to be logged in for this to work.  After loggin in as the service account it does work but I thought the whole point of scheduled tasks was that you could allow it to call the user account at the time it needed to run - not having to be contantly logged in?  Does anyone know more about this?
0
Comment
Question by:robclarke41
  • 4
6 Comments
 
LVL 27

Expert Comment

by:bluntTony
ID: 24395073
It depends how the app has been written.

Services can run without a user being logged on, but other applications have to be run in a user session. Services are the background processes as listed in   services.msc. While these are exe's, that's not to say all exe's can run as a service.

Unfortunately if the software vendor says this isn't possible then it may not be.

There is software to which allows you to run applications as services (this is top of a google search : http://www.eltima.com/products/application-as-service/?gr=aas&gclid=CMOD3ICzvpoCFQOaFQodW1yDrw), but I have not used any myself so couldn't recommend any.

HTH
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 24395129
Well in general you don't have to be logged on for scheduled tasks to run, however it's hard to say whether it's more WHAT you're running at the scheduled time requires a user to be logged on?

Try scheduling random mundane things just for tests, you should see that all run fine logged in or not. However if this particular executable (or whatever it is) needs to run when logged on for whatever reason, the task would fail to complete...

That would just be my guess, but we definitely use scheduled tasks on various servers and none have problems... :)

Pete
0
 
LVL 1

Author Comment

by:robclarke41
ID: 24395828
Thanks guys all useful information, I will test it on something more mundane and see if that works.  The actual application that runs is an ftp program that downloads and updates a statistics program called DLX - maybe that is the cause.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 19

Accepted Solution

by:
PeteJThomas earned 500 total points
ID: 24396090
It may be a little late, but we have a similar scheduled operation here, and we use two different ways of doing it. Once is a program called CoreFTP - This is for a high importance daily FTP transfer, but this costs for the license and needs renewing on a yearly basis. Once set up (about a year ago) it's never ever missed a transfer, so worth the money considering the transfer is very important.

Then for a lower importance daily transfer, we just use the built-in ftp command (batch file) and an ftp script for the transfer. As follows:

.bat file contains : ftp -s:scriptname.scr DestinationIPAdress>>eZfetchFTP.log

And the contents of the script is in the code snippet box below:
username for destination

password for destination

prompt off

cd /destinationftp/path        (changes directory on target machine)

lcd e:\sourceftp\path      (changes directory on source machine)

put <file to transfer>    (copies file from source to destination)

quit

Open in new window

0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 24396100
The above may not help you in the slightest, but just thought I'd give you an insight into what we use/do here... :)

Pete
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 24396107
Oh and both operations run perfectly with the servers they run on logged off and at the logon screen...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now