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 start.sh it fails with Command serve not
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/start.sh')) +
JOB(NODE_REACT) JOBQ(QS36EVOKE) CPYENVVAR(*YES)
And then start.sh contains
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 start.sh to get this to run?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.