ADS and task scheduler

This forum is for eXpress++ general support.
Post Reply
Message
Author
omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

ADS and task scheduler

#1 Post by omni »

Roger,

To your knowledge, is there anything special to run an exe from task scheduler on the server with ADS? The exe runs fine if started by a user from the same long path name, but the task scheduler just hangs.
Is there something not loaded or a missing path that is needed?

My client has 4 to run that were running on the non-ads. We made new exe's to load the ads, which it does, but only if started by a user.

Thanks

Fred
Omni

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ADS and task scheduler

#2 Post by rdonnay »

Did you test it first by just running it on the server from a command prompt?
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: ADS and task scheduler

#3 Post by omni »

Yes, it runs from any command prompt and using the windows run command. Only on task scheduler it does nothing, according to the user. He has to stop it using task manager.

Fred

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ADS and task scheduler

#4 Post by rdonnay »

You probably should put some debugging in the DBESYS.PRG to see if it gets that far.
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: ADS and task scheduler

#5 Post by omni »

I did some log writing as it goes thru the dbesys and it is successfully loading ADS according to the log.

I then did the same thing in the exe and it stops logging and everything else when it attempts to open its first dbf file.
There is no method to record an error..and cannot find why it stops there. Its a simple use command and it works running from any other location.
It locks up and has to be stopped using the task manager. There may be some sort of ADS message but using the scheduler those do not show up anywhere.

Any suggestions?

Fred

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ADS and task scheduler

#6 Post by rdonnay »

You should write out your environment to a file in your DBESYS.PRG.

WTL GetEnv('PATH')

This may help to figure out what's going on.
It could be that you have a different PATH environment when running as an app than when running as a service.

You may need to make sure that you change directories to the correct startup folder.
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: ADS and task scheduler

#7 Post by omni »

Thanks..had to do a new dbesys for these apps and also changed the default path for our app and ads. Finally worked...

Fred

Post Reply