IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Start batch-file from scheduler or service

  • 1.  Start batch-file from scheduler or service

    Posted Wed May 26, 2004 12:20 PM

    I would like to start a batch-file on my server from the wM scheduler. Is there any way to do this?

    I tried the service sample.commandlineExec:fireCommandExec, but this doesn’t, and gives a succes=true message.

    Thanks,

    Jeroen


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Start batch-file from scheduler or service

    Posted Thu May 27, 2004 08:44 AM

    You should be able to execute an OS script without problems. Is the script you are trying to run in the PATH of the Integration Server? Are you specifying the full path name of the script?

    Have you script leave some debug trace for you to see if it is really running or not. Probably your script is running but erroring out becuase you are in the wrong folder or something.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Start batch-file from scheduler or service

    Posted Thu May 27, 2004 09:42 AM

    Step1: Place the {name}.bat file in the hard drive.

    Step2: Create a java service within the developer.

    Step3: Instantiate the java runtime class from within the wMjava service.

    Step4. Execute the batch file from the java service.

    Hope this helps!

    Regards,
    Animesh


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB