× 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.



It did it again!



Third time lucky



PGM

ADDENVVAR QIBM_MULTI_THREADED Y

QSH CMD('/DOT/NODE/START.SH')

ENDPGM



If that all appears on one line again I am giving up - you hopefully get the drift :)



-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: 21 August 2015 22:17
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Starting a node program so it keeps running without interactive jobs staying open.



Not sure what happened there - it dropped all my carriage returns!



Try (again):



SBMJOB CMD(CALL MYPGM) JOB(NDWSA)



Where MYPGM is a simple CLLE program:





PGM

ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE(Y) QSH CMD('/DOT/NODE/START.SH') ENDPGM



And /dot/node/start.sh is



cd /QOpenSys/QIBM/ProdData/Node/bin # Assumes no symbolic links available

node /dir/sample.js









-----Original Message-----

From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner

Sent: 21 August 2015 22:13

To: Web Enabling the IBM i (AS/400 and iSeries)

Subject: Re: [WEB400] Starting a node program so it keeps running without interactive jobs staying open.



That is because you are still adding the environment variable to your interactive job, then submitting a job that doesn't know anything about it.



Try:



SBMJOB CMD(CALL MYPGM) JOB(NDWSA)



Where MYPGM is a simple CLLE program:



pgm

ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE(Y) QSH CMD('/DOT/NODE/START.SH') endpgm







-----Original Message-----

From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kelly Cookson

Sent: 21 August 2015 19:35

To: Web Enabling the IBM i (AS/400 and iSeries)

Subject: Re: [WEB400] Starting a node program so it keeps running without interactive jobs staying open.



Nathan and Kevin,



Still no success. I created a CL program (named ND001) with the following two commands:



ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE(Y)



SBMJOB CMD(QSH CMD('/DOT/NODE/START.SH')) +

JOB(NDWSA) USER(KCOOKSON)



I tried calling the ND001 CL program from a command line (CALL). I tried submitting the ND001 CL from a command line (SBMJOB). I'm still getting the signal 5 error in both cases.



I don't get the signal 5 error when I add the environmental variable in an interactive session and then use an interactive qshell session to start the node program. So I know it works in an interactive session.



Thanks,



Kelly Cookson

IT Project Leader

Dot Foods, Inc.

1.217.773.4486 ext. 12676

kcookson@xxxxxxxxxxxx<mailto:kcookson@xxxxxxxxxxxx>







-----Original Message-----

From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin

Sent: Friday, August 21, 2015 1:13 PM

To: Web Enabling the IBM i (AS/400 and iSeries)

Subject: Re: [WEB400] Starting a node program so it keeps running without interactive jobs staying open.





Do I need to add the environment variable to the submitted job?





I would think so. Use SBMJOB to submit a CLLE program - set environment variables there - then call QSH from the CLLE program and pass the reference to your .sh file.

--

This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/web400

or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>

Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.



--

This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/web400

or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>

Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.





___________________________________________

This email has been scanned by iomartcloud.

http://www.iomartcloud.com/





________________________________



NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.







--------------------------------------------------------------------------------





CoralTree Systems Limited

Company Registration Number 5021022.

Registered Office:

12-14 Carlton Place

Southampton

Hampshire

SO15 2EA

VAT Registration Number 834 1020 74.

--

This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/web400

or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>

Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.





___________________________________________

This email has been scanned by iomartcloud.

http://www.iomartcloud.com/





________________________________



NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.







--------------------------------------------------------------------------------





CoralTree Systems Limited

Company Registration Number 5021022.

Registered Office:

12-14 Carlton Place

Southampton

Hampshire

SO15 2EA

VAT Registration Number 834 1020 74.

--

This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/web400

or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>

Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.





___________________________________________

This email has been scanned by iomartcloud.

http://www.iomartcloud.com/



________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.