Skip to main content
1-Visitor
Jul 10, 2013 12:08 PM UTC
Solved

Windows Task Scheduler

I am using windows 2008 Server to schedule some tasks to run on a certain time. Installed on this Server I have Integrity client 2009/SP6.

I have a smal batch si commands which can not be excuted from the windows scheduler. Any othe CMD Batchfiles are working just fine. MKS Batch files are not. I have tried many settings, nothing worked. Do anyboday have an idea?

    dheglandAnswer
    1-Visitor
    Jul 10, 2013 4:52 PM UTC

    The hanging symptom in batch jobs is indeed very tricky! It's caused by the fact that the Integrity client stays running unless you proactively shut it down. A subsequent instance of the batch job may be unable to connect to a client started by a prior instance. To prevent this kind of thing, you need to design your batch jobs to begin with "si.exe connect" and end with "si.exe exit --shutdown". I have done so and found it to work very well.

    4 replies

    1-Visitor
    Jul 10, 2013 1:15 PM UTC

    I've done lots of successful scripting with 2009sp6. I am very sure that it works and works well. Perhaps you could elaborate on what command you are running and what error you are seeing.

    Translate
    1-Visitor
    Jul 10, 2013 4:40 PM UTC

    I `ve found the reason, when the integrity run`s in the background it hangs some times I do not know why

    The secound time the client want`s to start it crasches cause of the existing client in the background. Know it works fine.

    Translate
    dhegland1-VisitorAnswer
    1-Visitor
    Jul 10, 2013 4:52 PM UTC

    The hanging symptom in batch jobs is indeed very tricky! It's caused by the fact that the Integrity client stays running unless you proactively shut it down. A subsequent instance of the batch job may be unable to connect to a client started by a prior instance. To prevent this kind of thing, you need to design your batch jobs to begin with "si.exe connect" and end with "si.exe exit --shutdown". I have done so and found it to work very well.

    Translate