You did ADDENVVAR ENVVAR(PASE_STDIO_ISATTY) VALUE(N) then ran QSH?
This works for me:
> QSH CMD('/QOpenSys/pkgs/lib/nodejs12/bin/node -v')
Command ended normally with exit status 133.
> ADDENVVAR ENVVAR(PASE_STDIO_ISATTY) VALUE(N)
Environment variable added.
> QSH CMD('/QOpenSys/pkgs/lib/nodejs12/bin/node -v')
Command ended normally with exit status 0.
The first prints out
[11508102]: ../src/node.cc:560:void node::PlatformInit(): Assertion
`(err) ==
(0)' failed.
qsh: 001-0078 Process ended by signal 5.
After setting the environment variable, it shows
v12.8.1
----- Original message -----
From: B Stone <bvstone@xxxxxxxxx>
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Cc:
Subject: [EXTERNAL] Re: [IBMiOSS] QSH running commands to start Node
Date: Tue, Oct 1, 2019 9:34 AM
code was in the original post.
It's basically PM2 commands to end and restart my node jobs.
#!/QOpenSys/pkgs/bin/bash
PATH="/QOpenSys/pkgs/lib/nodejs12/bin:/QOpenSys/pkgs/bin:$PATH";
export PATH;
# This is for idb-connector, etc
NODE_PATH="/QOpenSys/pkgs/lib/nodejs12/lib/node_modules";
export NODE_PATH;
pm2 stop all;
pm2 delete all;
pm2 start /nodejs/bvstools/nodejsdemo/bin/www --name "njsdemo";
Like I said, i worked before but I think since updating from Node 8 to
12
is when it stopped working.
On Tue, Oct 1, 2019 at 9:14 AM Jack Woehr
<jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
> On Tue, Oct 1, 2019 at 8:03 AM B Stone <bvstone@xxxxxxxxx> wrote:
>
> > No, that's already been tried. Does nothing.
> >
> > On Tue, Oct 1, 2019 at 8:56 AM Jesse Gorzinski <jgorzins@xxxxxxxxxx>
> > wrote:
> >
> > > I think PASE_STDIO_ISATTY=N is the Tylenol you need (at least for
now)
> > >
> > >
> >
>
[1]
https://bitbucket.org/ibmi/opensource/issues/80/issues-with-qp2term-and-nodejs-v1281 ;
> >
>
>
> Hmm, can you show code? Because it's tricky setting vars for shell
under
> QSH.
>
> --
> Jack Woehr
> Absolute Performance, Inc.
> 12303 Airport Way, Suite 100
> Broomfield, CO 80021
>
> NON-DISCLOSURE NOTICE: This communication including any and all
> attachments is for the intended recipient(s) only and may contain
> confidential and privileged information. If you are not the intended
> recipient of this communication, any disclosure, copying further
> distribution or use of this communication is prohibited. If you
received
> this communication in error, please contact the sender and
delete/destroy
> all copies of this communication immediately.
> --
> 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: [2]
https://lists.midrange.com/mailman/listinfo/opensource ;
> or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at [3]
https://archive.midrange.com/opensource ;.
>
> Help support midrange.com by shopping at amazon.com with our affiliate
> link: [4]
https://amazon.midrange.com ;
>
--
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: [5]
https://lists.midrange.com/mailman/listinfo/opensource ;
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [6]
https://archive.midrange.com/opensource ;.
Help support midrange.com by shopping at amazon.com with our affiliate
link: [7]
https://amazon.midrange.com ;
References
Visible links
1.
https://bitbucket.org/ibmi/opensource/issues/80/issues-with-qp2term-and-nodejs-v1281
2.
https://lists.midrange.com/mailman/listinfo/opensource
3.
https://archive.midrange.com/opensource
4.
https://amazon.midrange.com/
5.
https://lists.midrange.com/mailman/listinfo/opensource
6.
https://archive.midrange.com/opensource
7.
https://amazon.midrange.com/
As an Amazon Associate we earn from qualifying purchases.