Task Schedule Batch Job

Discussion in 'Server Setup' started by thilagar, Feb 13, 2006.

  1. thilagar

    thilagar Guest

    Hi,

    I have a batch file which will run 3 exe's run one by one when I run it
    manually it runs properly I can see the CMD window opened and the GUI. But,
    It is scheduled on my account it is not run to completion when I not logged
    on.

    We have wondows 2003 server and Service Pack 1 installed on the server.

    Please, help me on the same.

    -Thilagar
     
    thilagar, Feb 13, 2006
    #1
    1. Advertisements

  2. thilagar

    Dave Patrick Guest

    Scheduled Tasks|Advanced|View Log may provide some details. If the job
    connects to another machine you may need to add the user/ group 'logon as
    batch job' rights (server side). Control Panel|Admin Tools|Local Security
    Policy\Local Policies\User Rights Assignments
    "Log on as a batch job"

    Remember that if it involves network resources to make sure the user account
    has permissions to the resources and also use UNC paths as mapped drives
    won't natively exist when no one is logged on.

    --

    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect

    :
    | Hi,
    |
    | I have a batch file which will run 3 exe's run one by one when I run it
    | manually it runs properly I can see the CMD window opened and the GUI.
    But,
    | It is scheduled on my account it is not run to completion when I not
    logged
    | on.
    |
    | We have wondows 2003 server and Service Pack 1 installed on the server.
    |
    | Please, help me on the same.
    |
    | -Thilagar
    |
    |
    |
     
    Dave Patrick, Feb 13, 2006
    #2
    1. Advertisements

  3. thilagar

    thilagar Guest

    Thanks for the information Dave,

    I checked the Viewlog details, and I can see that the job starts at
    scheduled time.

    Here I am giving clear picture of the issue:

    we have server A and server B; server A is production and Server B is Test.

    I connect thru terminal service Client & have no direct access,the servers
    are remote servers

    The batch Job is scheduled to run in server B as daily job.

    The batch Job containg three exes to run one by one first two exes will use
    only local resources to run but the third exe involves in communicating with
    other server machine.

    The scheduled batch job executes first two exes correctly. but, the third
    exe has not run to complete and keeps executing more than 24hrs where it
    should take maxiumum of 1hr to complete.

    what the third exe is doing is it loads the server A(production) server's
    UDL file in server B (local) application and updating in server
    A's(production) SQL server database. This is not happening while running in
    scheduled task. But, it is working correctly while running it manually.

    I have added my account as "Log on as a batch job" in both the servers but,
    still the issue is exists, and I am the administrator for both the servers I
    have full access to the servers.

    Regards,
    Thilagar .B
     
    thilagar, Feb 14, 2006
    #3
  4. thilagar

    Dave Patrick Guest

    The application may not be capable of being run non-interactively. I'd ask
    the application developer.

    --

    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect

    :
    |
    | Thanks for the information Dave,
    |
    | I checked the Viewlog details, and I can see that the job starts at
    | scheduled time.
    |
    | Here I am giving clear picture of the issue:
    |
    | we have server A and server B; server A is production and Server B is
    Test.
    |
    | I connect thru terminal service Client & have no direct access,the servers
    | are remote servers
    |
    | The batch Job is scheduled to run in server B as daily job.
    |
    | The batch Job containg three exes to run one by one first two exes will
    use
    | only local resources to run but the third exe involves in communicating
    with
    | other server machine.
    |
    | The scheduled batch job executes first two exes correctly. but, the third
    | exe has not run to complete and keeps executing more than 24hrs where it
    | should take maxiumum of 1hr to complete.
    |
    | what the third exe is doing is it loads the server A(production) server's
    | UDL file in server B (local) application and updating in server
    | A's(production) SQL server database. This is not happening while running
    in
    | scheduled task. But, it is working correctly while running it manually.
    |
    | I have added my account as "Log on as a batch job" in both the servers
    but,
    | still the issue is exists, and I am the administrator for both the servers
    I
    | have full access to the servers.
    |
    | Regards,
    | Thilagar .B
     
    Dave Patrick, Feb 14, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.