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



I use the Alias to translate Unix/Internet style addresses to AS/400 style. If you go to http://i5.abc.com.py you will see some "asp" that run in the iSeries. :-) I have always translated to PGM, never tryed CMD, but it is likely that it will work fine.

The directives are: ScriptAlias and ScriptAliasMatch (with parameters)

You can try a directive: ScriptAlias /sample /QSYS.LIB/STRREXPRC.CMD SRCMBR(TEST) FILE(...
pointing your browser to http://myiseries/sample shold run the rexx program TEST
You will need to allow acces to /QSYS.LIB, it may be a better idea to copy STRREXPRC to your work library.

If a "hello word" rexx program works there, you can use ScriptAliasMatch to run different programs and to be able to pass data to them.

Dave Odom wrote:

Raul,

Can you point me in the right direction on the "alias" function and how REXX works with Apache?

Love OS/2. Too bad the world went with the VHS consumer operating system for PCs instead of, at least, using OS/2 when you need to create world class PC apps.

Thanks,

Dave


"Raul A. Jager W." <raul@xxxxxxxxxx> 5/21/2008 07:13 >>>

with the proper "Alias" Apache will surely run a REXX program. In OS/2 REXX sends the output to standardout, so the Apache receives it directly without using any API. I have little experience with REXX in AS/400

Haas, Matt (CL Tech Sv) wrote:


I sort of remember REXX being an option in the original HTTP server but I don't know if that was carried over or even if I'm just imagining it (the HTTP server docs should answer those questions). In any case, if an application can use StdIn and StdOut and work with environment variables, it should be useable for CGI.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Aaron Bartell
Sent: Tuesday, May 20, 2008 4:53 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Stone says he can write entire RSDC app in one night

Now there would be a cool exercise of a language: See if REXX can doing CGI
programming!

Looks as though REXX somewhat participates in ILE based on page 175 in the
REXX programmers guide:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/books/sc415728.pdf
Unfortunately I don't know enough about REXX data types to appropriately
build a sample CGI application. Also, REXX is interpreted so I am unsure
how Apache would forward a request to it as my knowledge ends at Apache
invoking a .pgm object.

Aaron Bartell
http://mowyourlawn.com ( http://mowyourlawn.com/ )

On Tue, May 20, 2008 at 3:38 PM, Dave Odom <Dave.Odom@xxxxxxxxxxxx> wrote:




I know just enough to be dangerous about CGIDEV2. I wonder if CGI APIs
can be called from REXX?

Thank you sir,

Dave



"Bradley V. Stone" <bvstone@xxxxxxxxxxxx> 5/20/2008 12:39 >>>


Yes, sorry I assumed you were familiar with CGIDEV2.

It's a package that wraps the CGI APIs making them super simple to use. It
uses a template system which could be compared to record formats (ie, write
a heading, loop through records and write detail lines, write a footer)
etc...

Since it's ILE you call the procedures with any ILE language.

If you want more info, feel free to contact me offline. I can show you
much
simpler examples and how it works.

Bradley V. Stone
BVSTools - www.bvstools.com eRPG SDK - www.erpgsdk.com


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On Behalf Of Dave Odom
Sent: Tuesday, May 20, 2008 2:24 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Stone says he can write entire RSDC app in one
night


I appreciate good work. Is the CGIDEV2 called from RPG or what?

Thanks,

Dave



"Bradley V. Stone" <bvstone@xxxxxxxxxxxx> 5/20/2008 12:07 >>>


Hi, Dave. Appreciate you taking the time to look.

They both use CGIDEV2. :)

Bradley V. Stone
BVSTools - www.bvstools.com eRPG SDK - www.erpgsdk.com


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx

[mailto:web400-bounces@xxxxxxxxxxxx]On

Behalf Of Dave Odom
Sent: Tuesday, May 20, 2008 2:02 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Stone says he can write entire RSDC app in one
night


Bradly,

Beautiful work. What code did you say you did this in?

Thanks,

Dave



"Bradley V. Stone" <bvstone@xxxxxxxxxxxx> 5/20/2008 09:59 >>>


This, by the way, is exactly the reason I've made the challenge.
Because there is a lot of bravado on the list, but very little
substance. Until you prove it, you're blowing smoke.


I'm going to ignore your (as usual) overreading into my posts with your
normal "everyone's out to get me" mentality even though I said
nothing about
you, your kids, and your time together.

Great. You created one application using EGL. Then you
challenge people to
duplicate it? Great, for you it helps your business as a POC.
Pay me, and
I'll duplicate it. If no one has the time, you're probably
right, it can't
be done. If a tree falls in the forest... yaddaa yadda yadda..... I
quickly am reminded why I don't spend as much time on these


lists anymore.


anyhooooooooooooooooooooooooooooooooooooo

Here's one app that I've produced for a customer. Yes, it's


live. So if


you order, you may have to wait for the UPS man.. lol.

https://121307.biz/oe/merchant.html
Here's another Aaron and I did

https://www.spartaninsurance.com/
There are more, but most are internal or require userid/passwords and
contain sensitive data. These have been live for years with


little or no


attention.

Sure, no AJAX, but just because it's there doesn't mean you have
to use it.
Like I said, I've only found a need in one application, and it's only
because the customer wanted something to show up while documents
were being
redacted and displayed online which can take anywhere from 2-15


seconds a


pop.

Brad
www.bvstools.com
--
This is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 is the Web Enabling the AS400 / 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 ...

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.