Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

REXX cgi scripts with Apache under Win2K

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  SSI Enable - Syntax Problem(s) ???  
Author Message
spammers2

External


Since: Dec 06, 2003
Posts: 4



(Msg. 1) Posted: Sun Dec 07, 2003 1:53 am
Post subject: REXX cgi scripts with Apache under Win2K
Archived from groups: alt>apache>configuration, others (more info?)

I'm trying to convert a lot of stuff I ran under OS/2 to Windows 2000
and slowly but surely I'm getting there. One of the biggest sticking
points is all of the REXX cgi I had written. REXX is native to OS/2,
but it's an add-on for Windows 2000. I have IBM's Object REXX for
Windows installed, but I'm not sure how to proceed from there.

I've got Apache 1.3.29 installed. Thanks in advance for any help anyone
can provide!

--
Jaime A. Cruz
Secretary
Nassau Wings Motorcycle Club
http://www.nassauwings.org/
http://www.popsrun.org/

 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
myudkinatcompu

External


Since: Dec 07, 2003
Posts: 3



(Msg. 2) Posted: Sun Dec 07, 2003 12:30 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IBM's OO-REXX for Windows is highly compatible with their OS/2 version. Your
code should run with almost no changes. To proceed, try your OS/2 code
unchanged (meaning only changes to file names and other such obvious
environmental differences) to see what doesn''t work.
"Jaime A. Cruz" <Spammers.DeleteThis@Bite.Me> wrote in message
news:K5tAb.4144$0U4.948716@news4.srv.hcvlny.cv.net...
 > I'm trying to convert a lot of stuff I ran under OS/2 to Windows 2000
 > and slowly but surely I'm getting there. One of the biggest sticking
 > points is all of the REXX cgi I had written. REXX is native to OS/2,
 > but it's an add-on for Windows 2000. I have IBM's Object REXX for
 > Windows installed, but I'm not sure how to proceed from there.
 >
 > I've got Apache 1.3.29 installed. Thanks in advance for any help anyone
 > can provide!
 >
 > --
 > Jaime A. Cruz
 > Secretary
 > Nassau Wings Motorcycle Club
<font color=purple> > <a style='text-decoration: underline;' href="http://www.nassauwings.org/</font" target="_blank">http://www.nassauwings.org/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.popsrun.org/</font" target="_blank">http://www.popsrun.org/</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
spammers2

External


Since: Dec 06, 2003
Posts: 4



(Msg. 3) Posted: Sun Dec 07, 2003 4:51 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Yudkin wrote:
 > IBM's OO-REXX for Windows is highly compatible with their OS/2 version. Your
 > code should run with almost no changes. To proceed, try your OS/2 code
 > unchanged (meaning only changes to file names and other such obvious
 > environmental differences) to see what doesn''t work.

I think the problem I'm having is getting the Apache server to recognize
the REXX cgi scripts as being REXX, and using the interpreter to execute
them...

--
Jaime A. Cruz
Secretary
Nassau Wings Motorcycle Club
<a style='text-decoration: underline;' href="http://www.nassauwings.org/" target="_blank">http://www.nassauwings.org/</a>
<a style='text-decoration: underline;' href="http://www.popsrun.org/" target="_blank">http://www.popsrun.org/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
spammers2

External


Since: Dec 06, 2003
Posts: 4



(Msg. 4) Posted: Sun Dec 07, 2003 7:08 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Yudkin wrote:
 > IBM's OO-REXX for Windows is highly compatible with their OS/2 version. Your
 > code should run with almost no changes. To proceed, try your OS/2 code
 > unchanged (meaning only changes to file names and other such obvious
 > environmental differences) to see what doesn''t work.

All righty, I found the directive in the httpd.conf that I had to enable
for Win32. I also registered the REXX interpreter rather than the REXX
Workbench to process *.REX files and renamed all of my .CMD to .REX.
Now I just have to work through the environmental differences as you've
pointed out. For one thing, the CHARIN function seems to be behaving
differently than I'd expect. Ah well...

--
Jaime A. Cruz
Secretary
Nassau Wings Motorcycle Club
<a style='text-decoration: underline;' href="http://www.nassauwings.org/" target="_blank">http://www.nassauwings.org/</a>
<a style='text-decoration: underline;' href="http://www.popsrun.org/" target="_blank">http://www.popsrun.org/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
myudkinatcompu

External


Since: Dec 07, 2003
Posts: 3



(Msg. 5) Posted: Tue Dec 09, 2003 11:24 am
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

CHARIN should be compatible. About 4 years ago I migrated a 11,500 line REXX
from OS/2 to Windows. I had to change one line (a call to stream that was
unexpectedly causing the program to hang).

I suspect that your problems are more related to differences in the way
Apache works. Since I'm more familiar with IIS, I'm going to have to
recommend you try an Apache forum for assistance on Apache configuration and
its CGI implementation. One of the nice things about IIS and OO-REXX is that
you can code in-process ASP pages in OO-REXX (this yields better performance
than CGI).

"Jaime A. Cruz" <Spammers.RemoveThis@Bite.Me> wrote in message
news:RfIAb.18481$dr1.2706280@news4.srv.hcvlny.cv.net...
 > Mark Yudkin wrote:
  > > IBM's OO-REXX for Windows is highly compatible with their OS/2 version.
Your
  > > code should run with almost no changes. To proceed, try your OS/2 code
  > > unchanged (meaning only changes to file names and other such obvious
  > > environmental differences) to see what doesn''t work.
 >
 > All righty, I found the directive in the httpd.conf that I had to enable
 > for Win32. I also registered the REXX interpreter rather than the REXX
 > Workbench to process *.REX files and renamed all of my .CMD to .REX.
 > Now I just have to work through the environmental differences as you've
 > pointed out. For one thing, the CHARIN function seems to be behaving
 > differently than I'd expect. Ah well...
 >
 > --
 > Jaime A. Cruz
 > Secretary
 > Nassau Wings Motorcycle Club
<font color=purple> > <a style='text-decoration: underline;' href="http://www.nassauwings.org/</font" target="_blank">http://www.nassauwings.org/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.popsrun.org/</font" target="_blank">http://www.popsrun.org/</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
spammers2

External


Since: Dec 06, 2003
Posts: 4



(Msg. 6) Posted: Tue Dec 09, 2003 3:33 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Yudkin wrote:
 > CHARIN should be compatible. About 4 years ago I migrated a 11,500 line REXX
 > from OS/2 to Windows. I had to change one line (a call to stream that was
 > unexpectedly causing the program to hang).
 >
 > I suspect that your problems are more related to differences in the way
 > Apache works. Since I'm more familiar with IIS, I'm going to have to
 > recommend you try an Apache forum for assistance on Apache configuration and
 > its CGI implementation. One of the nice things about IIS and OO-REXX is that
 > you can code in-process ASP pages in OO-REXX (this yields better performance
 > than CGI).

Okay, I found two things that are different already. See these three lines:

Call SysFileTree root || '*.jpg', files., 'F'
index = Random(files.0 - 1) + 1
Parse Value files.index With . . size . filename

For some reason, the "filename" variable above ends up with a leading
space. This is what's causing the CharIn function to fail. I added two
lines:

l = Length(filename)
filename = Right(filename, l - 1)

And this seems to have fixed the problem. I also have to add the
following line to the beginning of every REXX cgi script:

#!c:/program files/objrexx/rexx

Or Apache attempts to invoke the Object REXX Workbench to invoke the
script, and not the interpreter. This despite the fact that I did
associate the .REX extension with the interpreter and NOT the workbench
in the registry.

I seem to be on my way (thanks to Mark and to my friend Herman who
responded in personal E-Mail).

--
Jaime A. Cruz
Secretary
Nassau Wings Motorcycle Club
<a style='text-decoration: underline;' href="http://www.nassauwings.org/" target="_blank">http://www.nassauwings.org/</a>
<a style='text-decoration: underline;' href="http://www.popsrun.org/" target="_blank">http://www.popsrun.org/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
spammers3

External


Since: Dec 09, 2003
Posts: 1



(Msg. 7) Posted: Tue Dec 09, 2003 3:33 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jaime A. Cruz wrote:
 > Okay, I found two things that are different already. See these three
 > lines:
 >
 > Call SysFileTree root || '*.jpg', files., 'F'
 > index = Random(files.0 - 1) + 1
 > Parse Value files.index With . . size . filename
 >
 > For some reason, the "filename" variable above ends up with a leading
 > space. This is what's causing the CharIn function to fail. I added two
 > lines:
 >
 > l = Length(filename)
 > filename = Right(filename, l - 1)
 >
 > And this seems to have fixed the problem. I also have to add the
 > following line to the beginning of every REXX cgi script:
 >
 > #!c:/program files/objrexx/rexx
 >
 > Or Apache attempts to invoke the Object REXX Workbench to invoke the
 > script, and not the interpreter. This despite the fact that I did
 > associate the .REX extension with the interpreter and NOT the workbench
 > in the registry.
 >
 > I seem to be on my way (thanks to Mark and to my friend Herman who
 > responded in personal E-Mail).
 >

I always manage to do things the HARD way. Scratch those last two
lines. The "Strip" function will work better...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
davidno

External


Since: Dec 09, 2003
Posts: 1



(Msg. 8) Posted: Tue Dec 09, 2003 4:49 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jaime A. Cruz utilized atoms to convey:

 > Mark Yudkin wrote:
  > > CHARIN should be compatible. About 4 years ago I migrated a 11,500
  > > line REXX from OS/2 to Windows. I had to change one line (a call to
  > > stream that was unexpectedly causing the program to hang).
  > >
  > > I suspect that your problems are more related to differences in the
  > > way Apache works. Since I'm more familiar with IIS, I'm going to
  > > have to recommend you try an Apache forum for assistance on Apache
  > > configuration and its CGI implementation. One of the nice things
  > > about IIS and OO-REXX is that you can code in-process ASP pages in
  > > OO-REXX (this yields better performance than CGI).
 >
 > Okay, I found two things that are different already. See these three
 > lines:
 >
 > Call SysFileTree root || '*.jpg', files., 'F'
 > index = Random(files.0 - 1) + 1
 > Parse Value files.index With . . size . filename
 >
 > For some reason, the "filename" variable above ends up with a leading
 > space. This is what's causing the CharIn function to fail. I added
 > two lines:
 >
 > l = Length(filename)
 > filename = Right(filename, l - 1)
 >
 > And this seems to have fixed the problem.

well we use both OS/2 (Classic REXX) and Windows (Object REXX) here and
I just tested the lines above. I get a filename with a leading space on
either Operating System. Maybe there is a change in in the charin
function, but I can't find a difference in the sysfiletree and/or parse
statements.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
postingid

External


Since: Dec 09, 2003
Posts: 1



(Msg. 9) Posted: Tue Dec 09, 2003 5:56 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 09 Dec 2003 12:33:14 GMT "Jaime A. Cruz" <Spammers.RemoveThis@Bite.Me> wrote:

:>Mark Yudkin wrote:
:>> CHARIN should be compatible. About 4 years ago I migrated a 11,500 line REXX
:>> from OS/2 to Windows. I had to change one line (a call to stream that was
:>> unexpectedly causing the program to hang).

:>> I suspect that your problems are more related to differences in the way
:>> Apache works. Since I'm more familiar with IIS, I'm going to have to
:>> recommend you try an Apache forum for assistance on Apache configuration and
:>> its CGI implementation. One of the nice things about IIS and OO-REXX is that
:>> you can code in-process ASP pages in OO-REXX (this yields better performance
:>> than CGI).

:>Okay, I found two things that are different already. See these three lines:

:>Call SysFileTree root || '*.jpg', files., 'F'
:>index = Random(files.0 - 1) + 1
:>Parse Value files.index With . . size . filename

Perhaps

Parse Value files.index With . . size . filename .

:>For some reason, the "filename" variable above ends up with a leading
:>space. This is what's causing the CharIn function to fail. I added two
:>lines:

:>l = Length(filename)
:>filename = Right(filename, l - 1)

STRIP might be a better choice.

:>And this seems to have fixed the problem. I also have to add the
:>following line to the beginning of every REXX cgi script:

:>#!c:/program files/objrexx/rexx

:>Or Apache attempts to invoke the Object REXX Workbench to invoke the
:>script, and not the interpreter. This despite the fact that I did
:>associate the .REX extension with the interpreter and NOT the workbench
:>in the registry.

:>I seem to be on my way (thanks to Mark and to my friend Herman who
:>responded in personal E-Mail).

--
Binyamin Dissen <bdissen.RemoveThis@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
imc

External


Since: Dec 09, 2003
Posts: 1



(Msg. 10) Posted: Tue Dec 09, 2003 8:48 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A short while ago I became aware that Jaime A. Cruz had written:
 >l = Length(filename)
 >filename = Right(filename, l - 1)

As well as strip, which another has suggested, you can also do the above
using the substr function:

filename = substr(filename, 2)
--
---- Ian Collier : imc DeleteThis @comlab.ox.ac.uk : WWW page (including REXX section):
------ <a style='text-decoration: underline;' href="http://users.comlab.ox.ac.uk/ian.collier/imc.shtml" target="_blank">http://users.comlab.ox.ac.uk/ian.collier/imc.shtml</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
myudkinatcompu

External


Since: Dec 07, 2003
Posts: 3



(Msg. 11) Posted: Fri Dec 12, 2003 12:10 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Actually, you should have had the leading blank(s) on OS/2 as well...
Strange.

"Jaime A. Cruz" <Spammers.TakeThisOut@Bite.Me> wrote in message
news:eijBb.2403$T24.1437074@news4.srv.hcvlny.cv.net...
 > Mark Yudkin wrote:
  > > CHARIN should be compatible. About 4 years ago I migrated a 11,500 line
REXX
  > > from OS/2 to Windows. I had to change one line (a call to stream that
was
  > > unexpectedly causing the program to hang).
  > >
  > > I suspect that your problems are more related to differences in the way
  > > Apache works. Since I'm more familiar with IIS, I'm going to have to
  > > recommend you try an Apache forum for assistance on Apache configuration
and
  > > its CGI implementation. One of the nice things about IIS and OO-REXX is
that
  > > you can code in-process ASP pages in OO-REXX (this yields better
performance
  > > than CGI).
 >
 > Okay, I found two things that are different already. See these three
lines:
 >
 > Call SysFileTree root || '*.jpg', files., 'F'
 > index = Random(files.0 - 1) + 1
 > Parse Value files.index With . . size . filename
 >
 > For some reason, the "filename" variable above ends up with a leading
 > space. This is what's causing the CharIn function to fail. I added two
 > lines:
 >
 > l = Length(filename)
 > filename = Right(filename, l - 1)
 >
 > And this seems to have fixed the problem. I also have to add the
 > following line to the beginning of every REXX cgi script:
 >
 > #!c:/program files/objrexx/rexx
 >
 > Or Apache attempts to invoke the Object REXX Workbench to invoke the
 > script, and not the interpreter. This despite the fact that I did
 > associate the .REX extension with the interpreter and NOT the workbench
 > in the registry.
 >
 > I seem to be on my way (thanks to Mark and to my friend Herman who
 > responded in personal E-Mail).
 >
 > --
 > Jaime A. Cruz
 > Secretary
 > Nassau Wings Motorcycle Club
<font color=purple> > <a style='text-decoration: underline;' href="http://www.nassauwings.org/</font" target="_blank">http://www.nassauwings.org/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.popsrun.org/</font" target="_blank">http://www.popsrun.org/</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
user2602

External


Since: Dec 14, 2003
Posts: 1



(Msg. 12) Posted: Sun Dec 14, 2003 5:21 pm
Post subject: Re: REXX cgi scripts with Apache under Win2K [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sun, 14 Dec 2003 09:44:59 +0100
alt.apache.configuration,comp.lang.rexx
-- "Mark Yudkin" <myudkinATcompuserveDOTcom.RemoveThis@nospam.org> écrivait (wrote):
  >> The Charin function worked the way I expected it to, though someone here
 >said they attempted a quick check and it didn't for them.
 >
 >I agree with David: charin should have failed on OS/2 as well. I do not
 >understand why your program ever worked.

yes, but it happens also to me... I think that something has been
changed at some fp level for os2 (warp4) in the way arg is parsed.
I remember adding "strip(file_var)" after parsing arg because charin
for file_var was not working anymore. Unfortunatly I don't take any note
thinking only to my user error, but who knows...
Not very helpful anyway, I agree...

 >
 >"Jaime A. Cruz" <Spammers.RemoveThis@Bite.Me> wrote in message
 >news:EAiCb.80780$655.11656545@news4.srv.hcvlny.cv.net...
  >> Mark Yudkin wrote:
   >> > Actually, you should have had the leading blank(s) on OS/2 as well...
   >> > Strange.
   >> >
  >>
  >> I might've, just never noticed. The Charin function worked the way I
  >> expected it to, though someone here said they attempted a quick check
  >> and it didn't for them. Nothing like consistency, eh??
  >>
--
jj - Dimanche 14 Décembre 2003 --- 14:21:07<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: REXX cgi scripts with Apache under Win2K 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache problem on win2k box - I manage to fix this problem few months back:) but i just reformat and re-installed apache on this win2k box and i'm having this problem again so here it is... -2 apache process running -1 seems ok -1 using 94% CPU (i think thats my problem) -i can't..

CGI scripts: What has changed between Apache A.3 and Apach.. - Hi, I have a few CGI scripts that worked fine under mandrake 8.1 and apache 1.3.?, but having UPGRADED (ie not a new installation) to Mandrake 9.1 and Apache 2.0, I keep on getting a 'file not found' error whwn I run the scripts - in..

Newbie question running Apache on Win2k AS - I'm trying to run Apache on a Win2k Advanced Server machine. IIS is un-installed, Port 80 is open on my hardware and software firewall and when I type localhost it runs perfectly. The problem is when someone tries to access it over the internet they get ...

Win2k pro, apache 2.0, php - downloads php files, how do i.. - I've searched groups for this topic and found many results that didn't work in my configuration. I'm using: Windows 2000 pro Apache 2.0.43 (distributed with indigoperl 2003(latest version)) PHP 4.2.3 (distributed with above distrbution) Apache works..

Apache 4.0.46 and Win2k - no page served through localhost - OK, Apache gurus. I've been using Apache 1.3 for a while (with PHP) to develop some web sites on my laptop running Windows 2000 (I put them onto my Linux box for final proofing). No problems to date. Recently I had cause to rebuild the laptop so I..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]