Interactively, you should use a real shell.

For batch, see:
How to Call PASE Commands/Scripts from a Command Line, CL Program, or in a Submitted Job


-----Original Message-----
From: Robert Rogerson [mailto:rogersonra@xxxxxxxxx]
Sent: Wednesday, February 26, 2020 7:04 PM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Subject: [IBMiOSS] Difference between STRQSH and running in

I'm on the IBM i v7r3

When I run a command/program interactively in Qshell it runs successfully.
But when I try to run this in it fails with Command serve not found.

I start an interactive Qshell session.

$ cd node/vlegacireactjs
$ serve -s build -l 8010

The above starts a react server which I confirm is reachable when I point my browser at port 8010. I am trying to run a program that will start the server in batch.

SBMJOB CMD(QSH CMD('/home/RROGERSON/node/vlegacireactjs/')) +

And then contains

cd /home/RROGERSON/node/vlegacireactjs
serve -s build -l 8010

The job NODE_REACT fails (as seen in the QPRINT spool file) with Command serve not found .

Does anyone know what I have to add to to get this to run?



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.