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

Running My webMethods startup/shutdown script from a remote directory

  • 1.  Running My webMethods startup/shutdown script from a remote directory

    Posted Tue December 16, 2014 06:18 AM

    Hi,

    I couldn’t find answer for my question, so let me put it there.

    Where I try to run startup.sh script from a remote directory eg. /home I get the error message:

    [webm@ik4t7013 ~]$ sh /opt/data/webm/wm82/MWS/server/default/bin/shutdown.sh
    /opt/data/webm/wm82/MWS/server/default/bin/shutdown.sh: line 11: ./mws.sh: No such file or directory

    whereas it runs perfectly from from the directory it is installed.

    I also tried copying mws.sh into /wm82/MWS/server/default/bin/ but it didn’t work either.

    wM version is 8.2.

    The question is if it can be run from remote directory some other way, or there’s not such feature.

    Regards,
    Adam


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Running My webMethods startup/shutdown script from a remote directory

    Posted Tue December 16, 2014 08:01 AM

    You can build a wrapper script with the following steps:

    • save the current directory (pwd)
    • change to the MWS/bin-directory
    • call the real script
    • change back to the original directory

    Regards,
    Holger


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS