× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Pete. It was 1 (one). I changed it to an ! (never heard it called a
bang before) but I still get
/home/RROGERSON/node/vlegacireactjs/start.sh: 001-0019 Error found
searching for command serve. No such path or directory.

Thanks, Rob

On Wed, Feb 26, 2020 at 8:23 PM Pete Helgren <pete@xxxxxxxxxx> wrote:

I run stuff from QSH in CL (Tomcat, mostly) The only difference I see
is that I have #!/bin/sh as my first line Yours looks like a #1, not
pound (#) bang (!)

Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java
AWS Certified Cloud Practioner
Twitter - Sys_i_Geek IBM_i_Geek

On 2/26/2020 7:03 PM, Robert Rogerson wrote:
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
found.

I start an interactive Qshell session.

STRQSH
$ 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

#1/usr/bin/sh
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 start.sh to get this to run?

Thanks,

Rob
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.