WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Launching WinBatch and Other Apps
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Winbatch with Tivoli

Keywords: 	 winbatch tivoli

Question:

We're using winbatch scripts with tivoli software distribution and we noticed that when a script works underground from tivoli, the behavior of the script is not the same.

Sometimes the script doesn't work at all.

The script is started on a remote station with a local user that is local and domain admin. I know it's not a security problem but rather the script kind of hang during running. Sometimes the program starts but if i check into the taskman the program is there but nothing is executed (the changes on the remote pc are not done).

Again if the script is started manually on the remote pc everything works fine. It's only if i schedule it with tivoli that the problem appears.

Answer:

  1. Can you clarify what you mean when you say that a script "works underground from Tivoli"?

    Do you mean that the script is being launched by a program that is logged on as a service rather than as an interactive user?

    There are several differences between how interactive applications run and how services run. For example, a service runs logged on as either the local system account [e.g. it can have access to the console windowstation & desktop, but it cannot have access to network resources] or as an actual user account[it has its own private windowstation & desktop, cannot access the console windowstation & desktop, and it does have access to network resources]. There may also be some other important differences, such as whether or not the HKCU registry hive is loaded.

  2. It sounds like your script is at some point prompting for input or needs a button clicked in a message/error box, but it is running on a desktop which is "hidden" and thus its need for input is never acknowledged.

    Make sure you're not doing anything in your code that requires interaction or Sendkeys.

    You say your Debugtrace file doesn't get generated. Maybe post the first few lines of your code instead.

Resolution:

I took off the sendkeys and now the exe is running. It's not doing the job because the sendkeys are not there but it's starting and finishing ok.

Answer:

Well that pretty much nails it. Your compiled script is being launched by service process [e.g. Tivoli's agent] rather than by an interactive application process. This means that the playing field is *very* different w/respect to what you script can do in the way of interacting with other applications via the sending of keystrokes, etc...

You might want to re-think what it is that your script is supposed to be doing and determine if there is a way to achieve the same results w/o sending keystrokes. Use the Control Manager Extender (and Roboscripter) instead of Sendkeys.


Article ID:   W15173
File Created: 2002:09:05:13:50:18
Last Updated: 2002:09:05:13:50:18