On 13 May 2010 11:04, Bruce Skelly <[hidden email]> wrote: -- I've never seen top-posting or bottom posting covered as a rule in any netiquette list. Point taken. I Don't have a problem with "top-posting" in general, but if you don't top post you're more likely to trim. Trim, a must. This is my beef! The thread in question was out of control. Also when you change the subject, change the subject line. Agreed. I didn't change the subject in my last post as I went on to reply to the question so I was on topic. Alan. Needs more cow-bell! _______________________________________________ Ibm-netrexx mailing list [hidden email]
Alan
-- Needs more cowbell. |
In reply to this post by kenner
You should be able to compile there but I’ve not tried it.
I generally compile on my pc, pop the class in a jar file and send it over. From:
[hidden email]
[mailto:[hidden email]] On Behalf Of [hidden email]
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by measel
After further review…Well, I was about half right as usual. 1)
You could listen on a socket and provide http back to the
requestor (browser) a. snippet
below – amazing some of the junk I have lying around b. But, if
you want to do anything fancy you really need a real webserver. 2)
The presentation from Rene is from a RexxLA meeting about work
he did at ABN AMRO – quite impressive. 3)
The parse presentation is by Chip Davis and it’s not
NetRexx specific but very helpful anyway. /* part of a nrx program that listens for requests from browser
or cmdline and does stuff */ os = Rexx System.getProperty('os.name'); say 'running on ' os if arg = '' then arg =
80
-- default port serverS =
ServerSocket(arg)
-- register at port: server socket say 'Server:' serverS loop forever serviceS =
serverS.accept()
-- listen/accept client: service socket say serviceS '\n connected at:' Date() prtW =
PrintWriter(OutputStreamWriter(serviceS.getOutputStream())) sIS =
BufferedReader(InputStreamReader(serviceS.getInputStream())) cline = String(sIS.readLine()) say cline parse cline syscmd cmdstr 'HTTP'
. /* is this from a browser or cmd interface */ html =
1
/* default html */ if syscmd =
"syscmd" then
do --
from cmd line
parse cmdstr filename cmd nprop '=' nval
say 'cmd=>' filename cmd nprop nval
html = 0
end
else do --from
a browser parse
cmdstr '/?' filename '%20' cmd '%20' nprop '=' nval .
filename = filename.strip()
say 'http_req=>' filename 'cmd=' cmd 'propval=' nprop nval
end
-- either way we have filename, cmd, nprop & nval
if filename = 'help' then
do prtW.printLn('<html>') prtW.printLn('<H1>Introscope
configuration tool</H1>') prtW.printLn('<BODY>')
prtW.printLn('<BOLD><DFN>Usage:</DFN>') prtW.printLn('//hostname:port
filename [command] [property] [value]</BOLD><P>') prtW.printLn('
') prtW.printLn('<DFN>Valid
commands:</DFN> download, instrument, update, add<P>') prtW.printLn('
') prtW.printLn('
<FONT COLOR=0000FF>outputfile</FONT> download [mammoth download
key] [productfile]<P>') prtW.printLn('
your link from mammoth --> downloadkey=</FONT><FONT
COLOR=00FF00>4474897291555056884</FONT>&productfile=<FONT
COLOR=FF00FF>snmpadap/SNMPServices4.0windows.zip</FONT><P>') prtW.printLn('
<B>ex:</B> //appserver_host:9003/?output.zip download <FONT
COLOR=00FF00>4474897291555056884</FONT><FONT
COLOR=FF00FF>snmpadap/SNMPServices4.0windows.zip</FONT><P>') prtW.printLn('
') prtW.printLn('
<FONT COLOR=0000FF>pbdfile instrument input_jar
output_jar</FONT><P>') prtW.printLn('
ex: //appserver_host:9001/?custom.pbd instrument myApp.jar
myApp.isc.jar<P>') prtW.printLn('
') prtW.printLn('
<FONT COLOR=0000FF>properties_file</COLOR> update property
value</FONT><P>') prtW.printLn('
ex: Autoprobe.properties update
introscope.agent.leakhunter.enable=false<P>') prtW.printLn('</BODY>') prtW.close()
sIS.close()
-- close output and socket
serviceS.close() iterate end From: [hidden email]
[mailto:[hidden email]] On Behalf Of Measel, Mike Kenneth, yes NetRexx runs under OMVS, but….in order to
have a GUI you need Websphere or something similar. If you’d like I can privately email you some good
documents, like Rene’s presentation on Parse. I also have an example Netrexx servlet in case you decide to go
the Websphere route. From:
[hidden email]
[mailto:[hidden email]] On Behalf Of [hidden email]
From: [hidden email]
[mailto:[hidden email]] On Behalf Of [hidden email]
From:
[hidden email] [mailto:[hidden email]]
On Behalf Of [hidden email]
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by kenner
as already said: You *do have* to *compile* *NetRexx Files* only *once: at your *own machine* Then, my advise would be to put all of your classes *into **ONE** JAR-File* A *Jar* file is nearly similar to a ZIP file, but has some added features. When you like I could send you the *BUILD.BAT* file I personally am using for my own releases (as an example). Kind regards from dark Vienna, Thomas Schneider. PS: On the target machines, you will only have to have your classpath to reference your application!! PPS: There is *no recompilation necessary* *for EACH Target machine* !!!!!!!!! --- and whoops: *Everything works* .... Hope that helps. When you have further questions, give me a private mail to: [hidden email], and I will try to assist. Tom. :-) ====================================================================== Am 13.05.2010 18:57, schrieb [hidden email]
--
Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
In reply to this post by measel
On 13 May 2010 11:31, Measel, Mike <[hidden email]> wrote: Just to be sure I just tried again. It still works on at least one of my z/OS systems (I agree though that it's easier to compile locally and just copy the JAR files):
~> uname -a OS/390 XXXXXXXX 16.01 03 2094 ~> nrc -run hello -keep NetRexx portable processor, version 2.05 Copyright (c) IBM Corporation, 2005. All rights reserved. Program hello.nrx Compilation of 'hello.nrx' successful Running hello... Hello World! ~> java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20090707 (SR10 )) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20090707 (JIT enabled) J9VM - 20090706_38445_bHdSMr JIT - 20090623_1334_r8 GC - 200906_09) JCL - 20090705 Alan. -- Needs more cow-bell! _______________________________________________ Ibm-netrexx mailing list [hidden email]
Alan
-- Needs more cowbell. |
In reply to this post by alansam
The mail I've been getting was < a couple dozen K, or so it appeared on this lotus notes system. Kenneth Klein Systems Specialist 502-868-3644 859-750-5179 (Cell) 502-868-2298 (Fax) [hidden email]
On 13 May 2010 11:04, Bruce Skelly <bruce.skelly@...> wrote: I've never seen top-posting or bottom posting covered as a rule in any netiquette list. Point taken. I Don't have a problem with "top-posting" in general, but if you don't top post you're more likely to trim. Trim, a must. This is my beef! The thread in question was out of control. _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by kenner
Am Donnerstag, 13. Mai 2010 18:57:41 schrieb [hidden email]:
> Thanks MM, I'd gladly take a look at any documentation you might have. Not > sure if this shop has Websphere up and running. I know there are some web > pages getting served, but I'm not clear yet on how they have that set up. Around 1997 has been an excellent "Netrexx Tutorial" started and published on the net by Pierantonio Marchesini (at that time working/studying at ETH Zurich) which was updated regulary. I've printed myself a copy of version v0r0133, but don't know, if it's ever been finished, if it had updates later than v0r0133 and I don't know if it is still somewhere around the net. If someone even has an older/unfinished version, I'd say it's a gem for newbies to NetRexx, introduction into OO programming and those who like to move from Rexx to NetRexx, which shouldbe made available as-is again. kp _______________________________________________ Ibm-netrexx mailing list [hidden email] |
I'd love to see what you have. No luck for me on the net. The .cern site seems to have passwords and registration. Kenneth Klein Systems Specialist 502-868-3644 859-750-5179 (Cell) 502-868-2298 (Fax) [hidden email] Am Donnerstag, 13. Mai 2010 18:57:41 schrieb [hidden email]: > Thanks MM, I'd gladly take a look at any documentation Around 1997 has been an excellent "Netrexx Tutorial" started and published on the net by Pierantonio Marchesini (at that time working/studying at ETH Zurich) which was updated regulary. I've printed myself a copy of version v0r0133, but don't know, if it's ever been finished, if it had updates later than v0r0133 and I don't know if it is still somewhere around the net. If someone even has an older/unfinished version, I'd say it's a gem for newbies to NetRexx, introduction into OO programming and those who like to move from Rexx to NetRexx, which shouldbe made available as-is again. _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |