× 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 Kevin. That makes more sense.

Aaron, I will check out your article and consider it as an option. I have two other articles about node in MC Press Online, and I'm using them as a cross-reference with the developerWorks page.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx



-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: Thursday, August 20, 2015 2:59 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Ending a node web server from QSH session

They simply mean that you should do a system request followed by option 2 - the same thing you might do to kill an interactive program that is looping or some such. It just stops the process - if you using DOS it would be ctrl-c

On 20 Aug 2015, at 20:55, Kelly Cookson <KCookson@xxxxxxxxxxxx> wrote:

My managers have given me the green light to explore node on the IBM i (7.1).

I'm following the IBM developerWorks getting started page at: https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-nodejs/. The section of the page called "Create a web application using Node.js" has instructions for developing a hello world web server. I was able to get the hello world web server to run successfully:
* I created the sample.js file
* I put the sample.js file in the IFS
* I started a qshell session
* I executed the command "node /mydirectory/sample.js".
* I confirmed the web server was running by pointing my browser to the URL and seeing the hello world message.

Here's where I got a little confused. The developerWorks page says:

"To end the web server job, you can press the Esc key within the QSH session and select option 2 to work with the current jobs. Next, end the job running the node program with option 4 as shown in Figure 6."

While still in the qshell session, I pressed the escape key on my keyboard, but I did not get any options at all. I did not see a way to follow these instructions for ending the job. I used F3 to exit the qshell session. I pointed my browser to the URL, and it returned the standard browser message saying the page was not available.

If a node web server is started in a qshell session, is it okay to end the web server by simply stopping the qshell session?

Why did I not see any options when I pressed the escape key while in the qshell session?

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx<mailto:kcookson@xxxxxxxxxxxx>


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: 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 To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


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.