STRQSH Not working in CL for JDE Server Manager Stop and Start

110 pts.
Tags:
JDE server manager
STRQSH
Hello,

I hope someone can please assist and let me know why when we run the submit command for STRQSH in CL, it does not work?  But when we execute the command from the command line, it works fine.

Here are the commands,

SBMJOB     CMD(STRQSH CMD('CD +                                    /JDEDWARDS/JDE_HOME/bin;./stopAgent &')) +               JOB(ENDSMAGENT) JOBQ(JDESVRML/JDESVRMQ) +               USER(JDESVRPD)                           

SBMJOB     CMD(STRQSH CMD('CD +                                    /JDEDWARDS/JDE_HOME/bin;./startAgent &')) +              JOB(JDESMAGENT) JOBQ(JDESVRML/JDESVRMQ) +               USER(JDESVRPD)                            

Here is the error we get,

WHEN STOPPING,

qsh: 001-0019 Error found searching for command CD. No such path or directory. qsh: 001-0014 Command ./stopAgent not found.            

WHEN STARTING,

qsh: 001-0019 Error found searching for command CD. No such path or directory.    qsh: 001-0014 Command ./startAgent not found.                                    

As fyi, these are the jobs that runs when command to start works.

JDESVRM        QSYS        SBS      .0                   DEQW   JDESMAGENT   JDESVRPD    BCH      .0  CMD-STRQSH       TIMW   QP0ZSPWP     JDESVRPD    BCI      .0  PGM-QZSHSH       EVTW   QP0ZSPWP     JDESVRPD    BCI      .0  PGM-QZSHSH       EVTW   QP0ZSPWP     JDESVRPD    BCI      .0  JVM-com.jdedwa   THDW

Thanks in advance for your help.



Software/Hardware used:
i5O/S

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I can't quite tell what QSH commands you're trying to run. As far as I can tell, the commands aren't valid. It looks as if you want this Qshell utility in your first command:
    CD /JDEDWARDS/JDE_HOME/bin;./stopAgent &
    
    The Qshell cd utility can't handle a semi-colon in the middle of a path, and the ampersand at the end has no meaning unless you're trying to run the utility 'in the background' which doesn't make much sense in a SBMJOB of a single utility.
    
    Further, there is no Qshell utility named 'CD' unless you created one or you have an installed product that supplies one. The utility names are case-sensitive, so it needs to be 'cd' in lower-case.
    
    Now, if you actually have created a 'CD' utility, then we need to know more about what it is, where it is and what the path settings are for the job or profile that has success. Any submitted jobs will need the same settings.
    
    Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Let's see if I can clean that up... I can’t quite tell what QSH commands you’re trying to run. As far as I can tell, the commands aren’t valid. It looks as if you want this Qshell utility in your first command:
    CD /JDEDWARDS/JDE_HOME/bin;./stopAgent &
    The Qshell cd utility can’t handle a semi-colon in the middle of a path, and the ampersand at the end has no meaning unless you’re trying to run the utility ‘in the background’ which doesn’t make much sense in a SBMJOB of a single utility. Further, there is no Qshell utility named ‘CD’ unless you created one or you have an installed product that supplies one. The utility names are case-sensitive, so it needs to be ‘cd’ in lower-case. Now, if you actually have created a ‘CD’ utility, then we need to know more about what it is, where it is and what the path settings are for the job or profile that has success. Any submitted jobs will need the same settings. Tom
    125,585 pointsBadges:
    report
  • IS Questions
    Thanks Tom for your help. The issue was with the utility cd. As you said it is case sensitive so I tested and ran it in lower case and worked ok.
    110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following