Re: [Tn5250j-general] STRPCCMD

2007-12-19 Thread Richard Houston
Hey Pete,

Are you using windows or Linux? Just wondering as we us TN on both
platforms.

Thanks!

Rich


++
Best regards,
-Richard Houston
-R.L.H.  Consulting
-E-Mail  [EMAIL PROTECTED]
-WWW http://www.rlhc.net
-Bloghttp://www.rlhc.net/blog/


 Sweet!  Compiled and works like a charm!


 Thanks


 Pete Helgren


 Christian Geisert wrote:

 Richard Houston schrieb:


 Thanks Christian,


 I am having issues patching the file I get a malformed patch error.
 Would
 you consider just sending me your tnvt.java file?


 Sure .. .attached.



 Here is the error:


 [EMAIL PROTECTED]:~/tn5250j$ patch
 src/org/tn5250j/framework/tn5250/tnvt.java
 /home/rich/Desktop/tn5250j.diff
 patching file src/org/tn5250j/framework/tn5250/tnvt.java Hunk #2
 FAILED at 91.
 Hunk #3 FAILED at 921.
 Hunk #4 FAILED at 1194.
 Hunk #5 FAILED at 1205.
 Hunk #6 FAILED at 1917.
 patch:  malformed patch at line 120: screen52.getCurrentPos());



 Mmmh ... works for me with latest from cvs repository


 Just did a fresh checkout and appliedt the patch without a problem:


 cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/tn5250j
 co tn5250j cd tn5250j patch -p0
 ~/tmp/patch_tn5250j_pco-20071210-ok2.diff
 patching file src/org/tn5250j/framework/tn5250/tnvt.java

 --
 Christian


 --
 --


 --
 ---
 SF.Net email is sponsored by:
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services
 for just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marke
 tplace
 --
 --


 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general

 
 -
 SF.Net email is sponsored by:
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services
 for just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
 lace___ Tn5250j-general
 mailing list Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general





-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-12-14 Thread Pete Helgren

Sweet!  Compiled and works like a charm!

Thanks

Pete Helgren

Christian Geisert wrote:

Richard Houston schrieb:
  

Thanks Christian,

I am having issues patching the file I get a malformed patch error. Would
you consider just sending me your tnvt.java file?



Sure .. .attached.

  

Here is the error:

[EMAIL PROTECTED]:~/tn5250j$ patch
src/org/tn5250j/framework/tn5250/tnvt.java
/home/rich/Desktop/tn5250j.diff
patching file src/org/tn5250j/framework/tn5250/tnvt.java
Hunk #2 FAILED at 91.
Hunk #3 FAILED at 921.
Hunk #4 FAILED at 1194.
Hunk #5 FAILED at 1205.
Hunk #6 FAILED at 1917.
patch:  malformed patch at line 120: screen52.getCurrentPos());



Mmmh ... works for me with latest from cvs repository

Just did a fresh checkout and appliedt the patch without a problem:

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/tn5250j co
tn5250j
cd tn5250j
patch -p0 ~/tmp/patch_tn5250j_pco-20071210-ok2.diff
patching file src/org/tn5250j/framework/tn5250/tnvt.java

--
Christian
  



-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace


___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-12-13 Thread Pete Helgren

I am going to second that.

I looked at my source and most of those lines in the patch were already 
in there.  After manually updating the file I can't get it to run 
because of a class cast exception.  A complete tnvt.java file might be 
the most expedient way to get this tested.


Pete

Richard Houston wrote:

Thanks Christian,

I am having issues patching the file I get a malformed patch error. Would
you consider just sending me your tnvt.java file?

Here is the error:

[EMAIL PROTECTED]:~/tn5250j$ patch
src/org/tn5250j/framework/tn5250/tnvt.java
/home/rich/Desktop/tn5250j.diff
patching file src/org/tn5250j/framework/tn5250/tnvt.java
Hunk #2 FAILED at 91.
Hunk #3 FAILED at 921.
Hunk #4 FAILED at 1194.
Hunk #5 FAILED at 1205.
Hunk #6 FAILED at 1917.
patch:  malformed patch at line 120: screen52.getCurrentPos());



Thanks in advance!


++
Best regards,
-Richard Houston
-R.L.H.  Consulting
-E-Mail  [EMAIL PROTECTED]
-WWW http://www.rlhc.net
-Bloghttp://www.rlhc.net/blog/


  

Christian Geisert schrieb:



Richard Houston schrieb:

  

Hey Everyone, Just wondering if there was anything I could do to
help the debugging of the STRPCCMD code. My client is looking forward
to putting another nail in the client accesses coffin in there
environment and this function would do that. Please let me know if
there is anything I can do to help out.


I didn't find the time until now but I hope I'll have the patch ready
early next week.
  

Finally here's a patch for testing


This is based on work by Wim Van Leuven with adaption from Mahmoud
GANGAT - I just did change the check for the PCO string which didn't
work for me (problem with codepages..)


A nice story aside: Last week I was at IBM (to test Apache OFBiz on the
System i) and guess what the IBM guy used to access the System i?
Yes, he was running tn5250j!! Woohooo that made already my day - and
Java performance looked really good on the new maschine ;-)


--
Christian



-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___

Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general







-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

  
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-12-10 Thread Christian Geisert
Christian Geisert schrieb:
 Richard Houston schrieb:
 Hey Everyone, Just wondering if there was anything I could do to help the
 debugging of the STRPCCMD code. My client is looking forward to putting
 another nail in the client accesses coffin in there environment and this
 function would do that. Please let me know if there is anything I can do
 to help out.
 
 I didn't find the time until now but I hope I'll have the patch ready 
 early next week.


Finally here's a patch for testing

This is based on work by Wim Van Leuven with adaption from Mahmoud
GANGAT - I just did change the check for the PCO string which didn't
work for me (problem with codepages..)


A nice story aside: Last week I was at IBM (to test Apache OFBiz on the
System i) and guess what the IBM guy used to access the System i?
Yes, he was running tn5250j!! Woohooo that made already my day - and
Java performance looked really good on the new maschine ;-)

--
Christian

Index: src/org/tn5250j/framework/tn5250/tnvt.java
===
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/tnvt.java,v
retrieving revision 1.18
diff -u -r1.18 tnvt.java
--- src/org/tn5250j/framework/tn5250/tnvt.java  13 Dec 2005 11:53:00 -  
1.18
+++ src/org/tn5250j/framework/tn5250/tnvt.java  10 Dec 2007 17:34:11 -
@@ -36,6 +36,7 @@
 import java.io.OutputStream;
 import java.net.Socket;
 import java.util.Properties;
+import java.util.Arrays;
 
 import javax.swing.JDialog;
 import javax.swing.JLabel;
@@ -90,6 +91,8 @@
// WVL - LDC : TR.000300 : Callback scenario from 5250
private boolean scan; // = false;
private static int STRSCAN = 1;
+// WVL - LDC : 05/08/2005 : TFX.006253 - support STRPCCMD
+private boolean strpccmd; // = false;
private String user;
private String password;
private String library;
@@ -918,7 +921,61 @@
 
invited = true;
}
-
+
+   // WVL - LDC : 05/08/2005 : TFX.006253 - Support STRPCCMD
+   private void strpccmd()
+   {
+  try
+  {
+ int str = 11;
+ char c;
+ ScreenPlanes planes = screen52.getPlanes();
+ c = planes.getChar(str);
+ boolean waitFor = !(c == 'a');
+ 
+ StringBuffer command = new StringBuffer();
+ for (int i = str+1; i  132; i++)
+ {
+c = planes.getChar(i);
+if (Character.isISOControl(c))
+   c = ' ';
+command.append(c);
+ }
+ 
+ String cmd = command.toString().trim();
+ 
+ run(cmd, waitFor);
+  }
+  finally
+  {
+ strpccmd = false;
+ screen52.sendKeys(screen52.MNEMONIC_ENTER);
+  }
+   }
+   
+   // WVL - LDC : 05/08/2005 : TFX.006253 - Support STRPCCMD
+   private void run(String cmd, boolean waitFor)
+   {
+  try
+  {
+ log.debug(RUN cmd =  + cmd);
+ log.debug(RUN wait =  + waitFor);
+ 
+ Runtime r = Runtime.getRuntime();
+ Process p = r.exec(cmd);
+ if (waitFor)
+ {
+int result = p.waitFor();
+log.debug(RUN result =  + result);
+ }
+  }
+  catch (Throwable t)
+  {
+ log.error(t);
+  }
+   }
+   
+   
// WVL - LDC : TR.000300 : Callback scenario from 5250
/**
 * Activate or deactivate the command scanning behaviour.
@@ -1137,6 +1194,7 @@
 // }
 
try {
+if (!strpccmd) {
//   SwingUtilities.invokeAndWait(
//  new Runnable () {
// public void run() {
@@ -1147,6 +1205,9 @@
screen52.updateDirty();
 // controller.validate();
 // log.debug(update dirty);
+ } else {
+strpccmd();
+ }
} catch (Exception exd) {
log.warn( tnvt.run:  + exd.getMessage());
exd.printStackTrace();
@@ -1856,7 +1917,9 @@
//int rowc = 
screen52.getCurrentRow();
//int colc = 
screen52.getCurrentCol();
 
-   switch (bk.getNextByte()) {
+   byte bytebk = bk.getNextByte();
+ 
+   switch (bytebk) {
 
case 1: // SOH - Start of Header Order
log.debug(SOH - Start of Header 
Order);
@@ -2061,7 +2124,37 @@
screen52.addField(attr, fLength, ffw0, 
ffw1, fcw1, fcw2);
 
break;
+// WVL - LDC : 05/08/2005 : TFX.006253 

Re: [Tn5250j-general] STRPCCMD

2007-11-29 Thread Pete Helgren

Christian,

Thanks.  Richard has been patient and I haven't been able to get to it 
(I'm swamped).


I need to review outstanding bugs as well.  It would be nice to release 
a Final sometime since we have been at 0.6.1 Beta 1 forever.


I'd also like to make this an Eclipse plugin so that I can have a 
tn5250j pane in WDSc.  My list is long and my available time is limited.


Pete


Christian Geisert wrote:

Richard Houston schrieb:
  

Hey Everyone, Just wondering if there was anything I could do to help the
debugging of the STRPCCMD code. My client is looking forward to putting
another nail in the client accesses coffin in there environment and this
function would do that. Please let me know if there is anything I can do
to help out.



I didn't find the time until now but I hope I'll have the patch ready 
early next week.


Christian

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

  
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-11-28 Thread Christian Geisert
Richard Houston schrieb:
 Hey Everyone, Just wondering if there was anything I could do to help the
 debugging of the STRPCCMD code. My client is looking forward to putting
 another nail in the client accesses coffin in there environment and this
 function would do that. Please let me know if there is anything I can do
 to help out.

I didn't find the time until now but I hope I'll have the patch ready 
early next week.

Christian

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-10-29 Thread Christian Geisert
Pete Helgren schrieb:
 Richard,
 
 If you scan the archives for STRPCCMD you'll find some activity from 
 July, 2006, that indicated that the code for the feature hadn't been 
 committed yet.  There was a patch submitted and a full jar containing 
 other items from Win van Leuven.  The code hasn't been committed by 

And I tried to extract just the code for STRPCO, but it didn't work.
Then someone else sent an updated patch which I started to test
but then I got busy with other stuff... I'll see what I can do.

 anyone, in fact the product has been so stable that there hasn't been 
 much activity recently.

;-)

 I meant to apply the updates but I really haven't gotten to it.
 
 I'll see what I can do.  I have had some NPE's plaguing me lately with 
 0.6.1 beta version and I need to get to the bottom of that so if I open 
 up the code again I'll see if I can get the update done as well.

And there are some issues with Java 5 which I'd like to fix.

-- 
Christian


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-10-29 Thread Pete Helgren
Interestingly, when I looked at the code this weekend, it had the code 
that implemented the STRPCCMD in it already.  I compared it against CVS 
and it looks like what I have is current. I need to debug the code, 
since it isn't working, but that may take a while for me to get to.


Pete


Christian Geisert wrote:

Pete Helgren schrieb:
  

Richard,

If you scan the archives for STRPCCMD you'll find some activity from 
July, 2006, that indicated that the code for the feature hadn't been 
committed yet.  There was a patch submitted and a full jar containing 
other items from Win van Leuven.  The code hasn't been committed by 



And I tried to extract just the code for STRPCO, but it didn't work.
Then someone else sent an updated patch which I started to test
but then I got busy with other stuff... I'll see what I can do.

  
anyone, in fact the product has been so stable that there hasn't been 
much activity recently.



;-)

  

I meant to apply the updates but I really haven't gotten to it.

I'll see what I can do.  I have had some NPE's plaguing me lately with 
0.6.1 beta version and I need to get to the bottom of that so if I open 
up the code again I'll see if I can get the update done as well.



And there are some issues with Java 5 which I'd like to fix.

  
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-10-29 Thread Richard Houston
Hey All,

Thanks for looking into this for me. I really appreciate it. This would
be a serous feather in TN5250J cap as it will allow us to eliminate 2
systems that require CA. We want to run TN as much as possible.

On a side note, I complied CVS with Java 1.6 and it seems to work OK. It
also works on Compiz-fusion on Ubuntu where CVS on 1.5 on Compiz-fusion
would not render the TN5250J main screen.

I agree with Pete, TN has been a wonderfully stable product and has many
features that other 5250 emulators do not have such as tabs and the such.

Thanks guys and look forward to helping dubug the STRCMD stuff.

Rich


 Interestingly, when I looked at the code this weekend, it had the code
 that implemented the STRPCCMD in it already.  I compared it against CVS
 and it looks like what I have is current. I need to debug the code, since
 it isn't working, but that may take a while for me to get to.

 Pete



 Christian Geisert wrote:

 Pete Helgren schrieb:


 Richard,


 If you scan the archives for STRPCCMD you'll find some activity from
  July, 2006, that indicated that the code for the feature hadn't
 been committed yet.  There was a patch submitted and a full jar
 containing other items from Win van Leuven.  The code hasn't been
 committed by


 And I tried to extract just the code for STRPCO, but it didn't work.
 Then someone else sent an updated patch which I started to test
 but then I got busy with other stuff... I'll see what I can do.


 anyone, in fact the product has been so stable that there hasn't
 been much activity recently.


 ;-)



 I meant to apply the updates but I really haven't gotten to it.


 I'll see what I can do.  I have had some NPE's plaguing me lately
 with 0.6.1 beta version and I need to get to the bottom of that so if
 I open
 up the code again I'll see if I can get the update done as well.


 And there are some issues with Java 5 which I'd like to fix.



 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now 
 http://get.splunk.com/___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general





-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-10-27 Thread Pete Helgren
Richard,

If you scan the archives for STRPCCMD you'll find some activity from 
July, 2006, that indicated that the code for the feature hadn't been 
committed yet.  There was a patch submitted and a full jar containing 
other items from Win van Leuven.  The code hasn't been committed by 
anyone, in fact the product has been so stable that there hasn't been 
much activity recently.

I meant to apply the updates but I really haven't gotten to it.

I'll see what I can do.  I have had some NPE's plaguing me lately with 
0.6.1 beta version and I need to get to the bottom of that so if I open 
up the code again I'll see if I can get the update done as well.

That is about the best I can do.

Pete Helgren


Richard Houston wrote:
 Hey everyone,

 We have a need to use the STRPCCMD command on TN5250J on Linux. Does
 anyone have this working and or know if this can be done?

 We have tried it on Linux and Windows and both throw and error about
 PCO.exe not found on the system.

 Thanks all and any help on this would be greatly appreciated.


 ++
 Best regards,
 -Richard Houston
 -R.L.H.  Consulting
 -E-Mail  [EMAIL PROTECTED]
 -WWW http://www.rlhc.net
 -Bloghttp://www.rlhc.net/blog/





 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general

   

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-18 Thread Pete Helgren




Thanks Wim. I'll also build and test in the next day or so based on
what Christian has committed.

I am VERY interested in your screen scraper code. Thanks for including
that.

Pete


[EMAIL PROTECTED] wrote:

  Hello guys,
  
  
  sorry to get back to you so lately.
But been so busy here. In the meantime, our company has been takenover.
So you can imagine.
  
  
  I have checked the changes and those
are probably not commited to CVS. I'm including our changes, as I don't
have a project setup for TN development against sourceforge. Is anybody
willing to verify the changes and commit them? The class changed for
STRPCCMD
is of course the tnvt.java. The changes have been made against a
reference
version 0.5.8a. This surely isn't the latest. 
  
  
  Note also we have included a new a
new
package org.tn550j.swing.text.* We have set this up to implement a
screenscraper
on top of tn5250j. It allows you to render the datastream directly into
JTextArea as a GUI like an HTML file with textfields and buttons and
stuff.
Just take a look at it and see where we can get.
  
  
  
  Thanks in advance,
  
  Wim
  
  
  
  
  
  
  
  
  

  
Richard
Houston [EMAIL PROTECTED]

Sent by:
[EMAIL PROTECTED]
14/07/2006 23:45

  

  
  Please
respond to
[EMAIL PROTECTED]; Please respond to
tn5250j-general@lists.sourceforge.net
  

  






  

  
  To
  
  tn5250j-general@lists.sourceforge.net
  


  
  cc
  
  
  


  
  Subject
  
  Re:
[Tn5250j-general] STRPCCMD

  



  

  
  
  
  
  

  



  

  
  
  
  
  Hey guys,
  
We have been testing the strpccmd on our Linux setups but with little
success. We get a screen on the 400 saying that we need to start PCO.exe
on the PC but of course we can not so that on Linux.
  
So my question is, do we know if the below mentioned patches are in CVS
yet and does anyone know how I can get around the PCO.exe issue?
  
I have showed my client and he is really really excited to get it to
work.
  
Thanks guys!
  
  
  
  
++
Best regards,
-Richard Houston
-R.L.H. Consulting
-E-Mail [EMAIL PROTECTED]
-WWW   http://www.rlhc.net
-Blog  http://www.rlhc.net/blog/
  
  
 Probably that we have the code on our fixes path for the emulator.
I'll
 verify this.





 Christian Geisert [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 05/07/2006 09:18
 Please respond to
 tn5250j-general@lists.sourceforge.net


 To
 tn5250j-general@lists.sourceforge.net cc

 Subject
 Re: [Tn5250j-general] STRPCCMD







 [EMAIL PROTECTED] schrieb:

 Did you try the STRPCCMD + F4 to display commandproperties and
then
 fill

 in the command on the screen?

 If you run /usr/bin/firefox from any shell, the browser opens?


 What version of the emulator are you running?
 It might be you have to set a property to enable the scanning
for

 strpccmd

 I just tried it with latest cvs and doesn't work for me either.
 Wim, are you sure the code has been committed?
 I remember there has been some discussion about implementing it
but
I
 don't think it has been comitted. I'll hopefully have some time to
have a
 closer look at it later

 Christian


 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
make
 your job easier Download IBM WebSphere Application Server v.1.0.1
based on
 Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general


 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
make
 your job easier Download IBM WebSphere Application Server v.1.0.1
based
 on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general


  
  
  
  
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as

Re: [Tn5250j-general] STRPCCMD

2006-07-18 Thread Richard Houston
Hey all,

I down loaded the latest CVS version as of 14:00 CST.

Complied fine and fires up with no issues.

When I enter strpccmd PCCMD('gftp') PAUSE(*NO) but I get:
operation not permitted at this time at the bottom of the screen.
When I pull up the info on the message it tells me that pco is not
running so I do a strpco and try again but I get a screen that pops up
which says:

 Required PC program (PCO.EXE) is not active
 No communications with PC can occur
 Press ENTER to resume

Not sure if I missed any thing. Any ideas?

Thanks guys and glad to see some activity on tn5250j again.



++
Best regards,
-Richard Houston
-R.L.H.  Consulting
-E-Mail  [EMAIL PROTECTED]
-WWW http://www.rlhc.net
-Bloghttp://www.rlhc.net/blog
 Thanks Wim.  I'll also build and test  in the next day or so based on
 what Christian has committed.

 I am VERY interested in your screen scraper code.  Thanks for including
 that.

 Pete



 [EMAIL PROTECTED] wrote:



 Hello guys,


 sorry to get back to you so lately. But been so busy here. In the
 meantime, our company has been takenover. So you can imagine.

 I have checked the changes and those are probably not commited to CVS.
  I'm including our changes, as I don't have a project setup for TN
 development against sourceforge. Is anybody willing to verify the
 changes and commit them? The class changed for STRPCCMD is of course
 the tnvt.java. The changes have been made against a reference version
 0.5.8a. This surely isn't the latest.


 Note also we have included a new a new package
 org.tn5é50j.swing.text.* We have set this up to implement a
 screenscraper on top of tn5250j. It allows you to render the datastream
 directly into JTextArea as a GUI like an HTML file with textfields and
 buttons and stuff. Just take a look at it and see where we can get.


 Thanks in advance,
 Wim








 *Richard Houston [EMAIL PROTECTED]*
 Sent by: [EMAIL PROTECTED]


 14/07/2006 23:45
 Please respond to
 [EMAIL PROTECTED]; Please respond to
 tn5250j-general@lists.sourceforge.net



 To
 tn5250j-general@lists.sourceforge.net cc

 Subject
 Re: [Tn5250j-general] STRPCCMD










 Hey guys,


 We have been testing the strpccmd on our Linux setups but with little
 success. We get a screen on the 400 saying that we need to start
 PCO.exe
 on the PC but of course we can not so that on Linux.

 So my question is, do we know if the below mentioned patches are in
 CVS
 yet and does anyone know how I can get around the PCO.exe issue?

 I have showed my client and he is really really excited to get it to
 work.

 Thanks guys!





 ++
 Best regards,
 -Richard Houston
 -R.L.H.  Consulting
 -E-Mail  [EMAIL PROTECTED]
 -WWW http://www.rlhc.net
 -Bloghttp://www.rlhc.net/blog/



 Probably that we have the code on our fixes path for the emulator.
 I'll
 verify this.





 Christian Geisert [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 05/07/2006 09:18
 Please respond to
 tn5250j-general@lists.sourceforge.net


 To
 tn5250j-general@lists.sourceforge.net cc

 Subject
 Re: [Tn5250j-general] STRPCCMD








 [EMAIL PROTECTED] schrieb:


 Did you try the STRPCCMD + F4 to display commandproperties and
 then fill

 in the command on the screen?

 If you run /usr/bin/firefox from any shell, the browser opens?



 What version of the emulator are you running?
 It might be you have to set a property to enable the scanning for


 strpccmd

 I just tried it with latest cvs and doesn't work for me either.
 Wim, are you sure the code has been committed?
 I remember there has been some discussion about implementing it but I
  don't think it has been comitted. I'll hopefully have some time to
 have a
 closer look at it later

 Christian



 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
 make your job easier Download IBM WebSphere Application Server
 v.1.0.1
 based on
 Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121
 642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general



 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
 make your job easier Download IBM WebSphere Application Server
 v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=12
 1642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general







 --
 ---
 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to make
 your job easier

Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Wim . Van . Leuven

Hello Oliver,

We have integrated this functionality
into the emulator and it should work. However at AS/400 side remember to
first start PCO using the STRPCO command. afterwards you can run e.g. STRPCCMD
'notepad' which should start up notepad.exe on a windows box. 

If you can run your command from any
shell box on your PC, the emulator should be able to launch the firefox.

Another thing that has been implemented
in the latest version is the recognition of URL so that http:// and mailto://
urls become clickable in the emulator.

HTH,
Wim Van Leuven







Oliver Schneider [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
03/07/2006 10:56



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
[Tn5250j-general] STRPCCMD








Hi, 

I have read an older thread about the 'STRPCCMD' command, but I don't
know if it has been solved...

Is there a way to run it from linux.

strpccmd 'firefox http://url' format.

Is that possible?

Thank you for your help.

Oliver Schneider


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Wim . Van . Leuven

Did you try the STRPCCMD + F4 to display
commandproperties and then fill in the command on the screen? 

If you run /usr/bin/firefox from any
shell, the browser opens?

What version of the emulator are you
running?
It might be you have to set a property
to enable the scanning for strpccmd






Oliver Schneider [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
04/07/2006 14:03



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD









Hi again,

im afraid it doesn't work. 
here are my steps again...

strpco
strpccmd '/usr/bin/firefox'--doesn't work
strpccmd ('/usr/bin/firefox')   --doesn't work
strpccmd '/opt/kde35/bin/konqueror' --doesn't
work

In the same environment PowerTerm works. I think PowerTerm is java, too.

Do I need to allow it somewhere in the config?


Oliver Schneider

Am Dienstag, den 04.07.2006, 13:46 +0200 schrieb [EMAIL PROTECTED]:
 
 Hello Oliver, 
 
 never mind de PCO.exe. Just run the STRPCO command on the AS/400
 though the java emulator. Next try the STRPCCMD. It should work also
 on linux, as long as you pass in a command that works in the shell
or
 the environment in which the java emulator runs. 
 
 HTH, 
 wim 
 
 
 
 
 Oliver Schneider
 [EMAIL PROTECTED] 
 Sent by:
 [EMAIL PROTECTED] 
 
 04/07/2006 13:13 
 Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 
 
To
 tn5250j-general@lists.sourceforge.net 
cc
 
  Subject
 Re:
 [Tn5250j-general]
 STRPCCMD
 
 
 
 
 
 
 
 
 Hello Wim, 
 
 first I want to thank you for your help.
 
 One of my problems is, that it should run on a linux computer and
not
 on
 windows.
 
 So the emulator tells me than, that pco.exe is not active. 
 Why should it, it is on a linux-box. So is there no way to start a
 browser?
 
 It works on Ericom PowerTerm(5250 Emulator) for Linux.
 
 Are there any more hints for me?
 
 Thanks, 
 
 Oliver 
 
 Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb
 [EMAIL PROTECTED]:
  
  Hello Oliver, 
  
  We have integrated this functionality into the emulator and it
 should
  work. However at AS/400 side remember to first start PCO using
the
  STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad'
which
  should start up notepad.exe on a windows box. 
  
  If you can run your command from any shell box on your PC, the
  emulator should be able to launch the firefox. 
  
  Another thing that has been implemented in the latest version
is the
  recognition of URL so that http:// and mailto:// urls become
 clickable
  in the emulator. 
  
  HTH, 
  Wim Van Leuven 
 -- 
 Oliver Schneider
 EDV
 Schrauben-Jaeger AG
 Fon.: 07 21 - 5 70 06 - 141
 Fax.: 07 21 - 5 70 06 - 145
 
 [EMAIL PROTECTED]
 http://www.schrauben-jaeger.de
 
 
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general
 
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your
job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Tn5250j-general mailing
list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
-- 
Oliver Schneider
EDV
Schrauben-Jaeger AG
Fon.: 07 21 - 5 70 06 - 141
Fax.: 07 21 - 5 70 06 - 145

[EMAIL PROTECTED]
http://www.schrauben-jaeger.de


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Oliver Schneider
Hello Wim, 

first I want to thank you for your help.

One of my problems is, that it should run on a linux computer and not on
windows.

So the emulator tells me than, that pco.exe is not active. 
Why should it, it is on a linux-box. So is there no way to start a
browser?

It works on Ericom PowerTerm(5250 Emulator) for Linux.

Are there any more hints for me?

Thanks, 

Oliver 

Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb [EMAIL PROTECTED]:
 
 Hello Oliver, 
 
 We have integrated this functionality into the emulator and it should
 work. However at AS/400 side remember to first start PCO using the
 STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which
 should start up notepad.exe on a windows box.  
 
 If you can run your command from any shell box on your PC, the
 emulator should be able to launch the firefox. 
 
 Another thing that has been implemented in the latest version is the
 recognition of URL so that http:// and mailto:// urls become clickable
 in the emulator. 
 
 HTH, 
 Wim Van Leuven 
-- 
Oliver Schneider
EDV
Schrauben-Jaeger AG
Fon.:  07 21 - 5 70 06 - 141
Fax.:  07 21 - 5 70 06 - 145

[EMAIL PROTECTED]
http://www.schrauben-jaeger.de


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Wim . Van . Leuven

Hello Oliver, 

never mind de PCO.exe. Just run the
STRPCO command on the AS/400 though the java emulator. Next try the STRPCCMD.
It should work also on linux, as long as you pass in a command that works
in the shell or the environment in which the java emulator runs.

HTH,
wim







Oliver Schneider [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
04/07/2006 13:13



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD








Hello Wim, 

first I want to thank you for your help.

One of my problems is, that it should run on a linux computer and not on
windows.

So the emulator tells me than, that pco.exe is not active. 
Why should it, it is on a linux-box. So is there no way to start a
browser?

It works on Ericom PowerTerm(5250 Emulator) for Linux.

Are there any more hints for me?

Thanks, 

Oliver 

Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb [EMAIL PROTECTED]:
 
 Hello Oliver, 
 
 We have integrated this functionality into the emulator and it should
 work. However at AS/400 side remember to first start PCO using the
 STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which
 should start up notepad.exe on a windows box. 
 
 If you can run your command from any shell box on your PC, the
 emulator should be able to launch the firefox. 
 
 Another thing that has been implemented in the latest version is the
 recognition of URL so that http:// and mailto:// urls become clickable
 in the emulator. 
 
 HTH, 
 Wim Van Leuven 
-- 
Oliver Schneider
EDV
Schrauben-Jaeger AG
Fon.: 07 21 - 5 70 06 - 141
Fax.: 07 21 - 5 70 06 - 145

[EMAIL PROTECTED]
http://www.schrauben-jaeger.de


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Oliver Schneider

Hi again,

im afraid it doesn't work. 
here are my steps again...

strpco
strpccmd '/usr/bin/firefox'--doesn't work
strpccmd ('/usr/bin/firefox') --doesn't work
strpccmd '/opt/kde35/bin/konqueror' --doesn't work

In the same environment PowerTerm works. I think PowerTerm is java, too.

Do I need to allow it somewhere in the config?


Oliver Schneider

Am Dienstag, den 04.07.2006, 13:46 +0200 schrieb [EMAIL PROTECTED]:
 
 Hello Oliver,  
 
 never mind de PCO.exe. Just run the STRPCO command on the AS/400
 though the java emulator. Next try the STRPCCMD. It should work also
 on linux, as long as you pass in a command that works in the shell or
 the environment in which the java emulator runs. 
 
 HTH, 
 wim 
 
 
 
 
 Oliver Schneider
 [EMAIL PROTECTED] 
 Sent by:
 [EMAIL PROTECTED] 
 
 04/07/2006 13:13 
  Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 
 
To
 tn5250j-general@lists.sourceforge.net 
cc
 
   Subject
 Re:
 [Tn5250j-general]
 STRPCCMD
 
 
 
 
 
 
 
 
 Hello Wim, 
 
 first I want to thank you for your help.
 
 One of my problems is, that it should run on a linux computer and not
 on
 windows.
 
 So the emulator tells me than, that pco.exe is not active. 
 Why should it, it is on a linux-box. So is there no way to start a
 browser?
 
 It works on Ericom PowerTerm(5250 Emulator) for Linux.
 
 Are there any more hints for me?
 
 Thanks, 
 
 Oliver 
 
 Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb
 [EMAIL PROTECTED]:
  
  Hello Oliver, 
  
  We have integrated this functionality into the emulator and it
 should
  work. However at AS/400 side remember to first start PCO using the
  STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which
  should start up notepad.exe on a windows box.  
  
  If you can run your command from any shell box on your PC, the
  emulator should be able to launch the firefox. 
  
  Another thing that has been implemented in the latest version is the
  recognition of URL so that http:// and mailto:// urls become
 clickable
  in the emulator. 
  
  HTH, 
  Wim Van Leuven 
 -- 
 Oliver Schneider
 EDV
 Schrauben-Jaeger AG
 Fon.:  07 21 - 5 70 06 - 141
 Fax.:  07 21 - 5 70 06 - 145
 
 [EMAIL PROTECTED]
 http://www.schrauben-jaeger.de
 
 
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general
 
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Tn5250j-general mailing list 
 Tn5250j-general@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general
-- 
Oliver Schneider
EDV
Schrauben-Jaeger AG
Fon.:  07 21 - 5 70 06 - 141
Fax.:  07 21 - 5 70 06 - 145

[EMAIL PROTECTED]
http://www.schrauben-jaeger.de


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2006-07-04 Thread Oliver Schneider
Yes, sure I have tried strpccmd + f4. It doesn't change anything.

/usr/bin/firefox opens firefox from shell.

If I trie it from PowerTerm,for example strpccmd 'konqueror
http://www.google.com' it opens konqueror with the right URL.

I would be so happy, if that will work from tn5250j.
The version I run is 0.6.0. Is there a newer one out?

Where do I have to set the property?


Am Dienstag, den 04.07.2006, 14:07 +0200 schrieb [EMAIL PROTECTED]:
 
 Did you try the STRPCCMD + F4 to display commandproperties and then
 fill in the command on the screen?  
 
 If you run /usr/bin/firefox from any shell, the browser opens? 
 
 What version of the emulator are you running? 
 It might be you have to set a property to enable the scanning for
 strpccmd 
 
 
 
 Oliver Schneider
 [EMAIL PROTECTED] 
 Sent by:
 [EMAIL PROTECTED] 
 
 04/07/2006 14:03 
  Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 
 
To
 tn5250j-general@lists.sourceforge.net 
cc
 
   Subject
 Re:
 [Tn5250j-general]
 STRPCCMD
 
 
 
 
 
 
 
 
 
 Hi again,
 
 im afraid it doesn't work. 
 here are my steps again...
 
 strpco
 strpccmd '/usr/bin/firefox'--doesn't work
 strpccmd ('/usr/bin/firefox') --doesn't work
 strpccmd '/opt/kde35/bin/konqueror' --doesn't work
 
 In the same environment PowerTerm works. I think PowerTerm is java,
 too.
 
 Do I need to allow it somewhere in the config?
 
 
 Oliver Schneider
 
 Am Dienstag, den 04.07.2006, 13:46 +0200 schrieb
 [EMAIL PROTECTED]:
  
  Hello Oliver,  
  
  never mind de PCO.exe. Just run the STRPCO command on the AS/400
  though the java emulator. Next try the STRPCCMD. It should work also
  on linux, as long as you pass in a command that works in the shell
 or
  the environment in which the java emulator runs. 
  
  HTH, 
  wim 
  
  
  
  
  Oliver Schneider
  [EMAIL PROTECTED] 
  Sent by:
  [EMAIL PROTECTED] 
  
  04/07/2006 13:13 
   Please respond to
  tn5250j-general@lists.sourceforge.net
  
  
  
  
 To
  tn5250j-general@lists.sourceforge.net 
 cc
  
Subject
  Re:
  [Tn5250j-general]
  STRPCCMD
  
  
  
  
  
  
  
  
  Hello Wim, 
  
  first I want to thank you for your help.
  
  One of my problems is, that it should run on a linux computer and
 not
  on
  windows.
  
  So the emulator tells me than, that pco.exe is not active. 
  Why should it, it is on a linux-box. So is there no way to start a
  browser?
  
  It works on Ericom PowerTerm(5250 Emulator) for Linux.
  
  Are there any more hints for me?
  
  Thanks, 
  
  Oliver 
  
  Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb
  [EMAIL PROTECTED]:
   
   Hello Oliver, 
   
   We have integrated this functionality into the emulator and it
  should
   work. However at AS/400 side remember to first start PCO using the
   STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad'
 which
   should start up notepad.exe on a windows box.  
   
   If you can run your command from any shell box on your PC, the
   emulator should be able to launch the firefox. 
   
   Another thing that has been implemented in the latest version is
 the
   recognition of URL so that http:// and mailto:// urls become
  clickable
   in the emulator. 
   
   HTH, 
   Wim Van Leuven 
  -- 
  Oliver Schneider
  EDV
  Schrauben-Jaeger AG
  Fon.:  07 21 - 5 70 06 - 141
  Fax.:  07 21 - 5 70 06 - 145
  
  [EMAIL PROTECTED]
  http://www.schrauben-jaeger.de
  
  
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your
 job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Tn5250j-general mailing list
  Tn5250j-general@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/tn5250j-general
  
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your
 job easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___ Tn5250j-general
 mailing list Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general
 -- 
 Oliver Schneider
 EDV
 Schrauben-Jaeger AG
 Fon.:  07 21 - 5 70 06 - 141
 Fax.:  07 21 - 5 70 06 - 145
 
 [EMAIL PROTECTED]
 http://www.schrauben-jaeger.de
 
 
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

Hello Kenneth,

I've been looking on this issue also,
because STRPCCMD is used by almost all of our customers. So, I think we
should implement it next to the scanning solution. I was wondering though
if the streamdetection should do a callback to an interface, or should
immediately run the command as it is so basic/standard functionality that
a callback would be overhead. 

Not sure though what to scan for.

Wim.








Kenneth Pouncey [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
17/06/2005 09:36



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
[Tn5250j-general] STRPCCMD
- STRPCO uses?










Hello all

I have seen a couple of people now trying to use this command. Does
anybody
have any ideas on it's use or do they use it? If so then how?

The reason I ask is that I do beleive we can do this within the emulator
as
well.  That would work for linux environments as well :-))

If there is enough interest in this I will give it a try for the next release?

Also if anybody has any technical documentation on this and would share
it with
me that would be great.

Regards

Kenneth



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general



Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

I have been thinking about this ever since Ignacio posted to the list.  My idea
was to implement our own STRPCCMD command maybe called STRPCCMDJ or something
stupid like that.  Here we just attach a scan listener like you do in one of the
modules maybe My5250 and take care of it that way.  When we get the command we
can parse it and anything that has #!STRPCCMD x in it we just execut it.
 Was going to be one of my sample/examples :-)

Technical question?  Is there a special stream passed back for this type of
call?  If there is would it be the -128 code that Ignacio posted?  If it is
where did he get the information from?

Also what do they use it for?  Sorry but can not really think of a use.  Am just
a lowly programmer and not into the solutions that you and the others out there 
do.

Cool!!!  Let's make this sucker jump through some hoops now that the code base
is stable.  This could turn out to be a lot more flexible that what CA provides
as well.  We could also allow a custom implementation to be loaded from the
command line so the clients can load their own modules to handle this in their
own way.

Regards

Kenneth

Quoting [EMAIL PROTECTED]:

 Hello Kenneth,
 
 I've been looking on this issue also, because STRPCCMD is used by almost 
 all of our customers. So, I think we should implement it next to the 
 scanning solution. I was wondering though if the streamdetection should do 
 a callback to an interface, or should immediately run the command as it is 
 so basic/standard functionality that a callback would be overhead. 
 
 Not sure though what to scan for.
 
 Wim.
 
 
 
 
 
 
 Kenneth Pouncey [EMAIL PROTECTED] 
 Sent by: [EMAIL PROTECTED]
 17/06/2005 09:36
 Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 To
 tn5250j-general@lists.sourceforge.net
 cc
 
 Subject
 [Tn5250j-general] STRPCCMD - STRPCO uses?
 
 
 
 
 
 
 
 
 Hello all
 
 I have seen a couple of people now trying to use this command.  Does 
 anybody
 have any ideas on it's use or do they use it?  If so then how?
 
 The reason I ask is that I do beleive we can do this within the emulator 
 as
 well.   That would work for linux environments as well :-))
 
 If there is enough interest in this I will give it a try for the next 
 release?
 
 Also if anybody has any technical documentation on this and would share it 
 with
 me that would be great.
 
 Regards
 
 Kenneth
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Tn5250j-general mailing list
 Tn5250j-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/tn5250j-general
 
 






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

Actually Kenneth, it is even simpler
I think. The STRPCO command actually doesn't do anything (anymore). Just
the STRPCCMD fails if you have not issued a STRPCO in advance. It is just
client access that scans for what is in the stream on STRPCCMD and indeed
scrapes the command and runs it and does an enter. As such it seems the
screen has never been displayed.

HTH,
wim







Kenneth Pouncey [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
17/06/2005 10:52



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD
- STRPCO uses?









Wim

Well first off that test screen you have is pretty cool :-) 

Second it looks sort of like what we did for the scanner. So basically
what it
does is this. 

1) Sends the screen with a special command modeled after our scanner
stuff.
2) if it does receive this and PCO is active then it will read the
screen and
not display it. Even sending an Enter key afterwards could be. Would
actually
need to sniff the interaction but I think that is what it does.

3) If it is not active just display the screen like it says. Basically
turning
on and off the scanner by a 5250 screen command. This stops other
emulators
from continuing. 

Very simple indeed. The solution was elegant.

Like I said in one of the previous messages to Pete. It is not the
5250 data
streams themselves but how the client interprets and manipulates what is
there.

Now that is cool!!!

Regards

Kenneth



Quoting [EMAIL PROTECTED]:

 Kenneth,
 
 I'm completely with your proposal about the STRPCCMDJ as it will allow
for 
 so much more than STRPCCMD. The problem being however you application
has 
 to run on TN5250j. 
 
 Most of the customers use e.g. third party software where the STRPCCMD
is 
 programmed in the application. so they can not change it. The call
is used 
 for the most stupiest stuff you can imagine. e.g. open an image or
a word 
 document; Whatever. You imagine it they do it somewhere; 
 
 That is the main reason I think we need to implement standard STRPCCMD

 behaviour. As a matter a fact the STRPCCMD functionality is implemented
so 
 simple it is even stupid. Look at the screenshots below
 
 Wim.
 
 
 
 
 
 
 
 
 
 
 
 Kenneth Pouncey [EMAIL PROTECTED] 
 Sent by: [EMAIL PROTECTED]
 17/06/2005 10:00
 Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 To
 tn5250j-general@lists.sourceforge.net
 cc
 
 Subject
 Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
 
 
 
 
 
 
 
 Wim
 
 I have been thinking about this ever since Ignacio posted to the list.
My 
 idea
 was to implement our own STRPCCMD command maybe called STRPCCMDJ or

 something
 stupid like that. Here we just attach a scan listener like you
do in one 
 of the
 modules maybe My5250 and take care of it that way. When we get
the 
 command we
 can parse it and anything that has #!STRPCCMD x in it we just

 execut it.
 Was going to be one of my sample/examples :-)
 
 Technical question? Is there a special stream passed back for
this type 
 of
 call? If there is would it be the -128 code that Ignacio posted?
If it 
 is
 where did he get the information from?
 
 Also what do they use it for? Sorry but can not really think
of a use. Am 
 just
 a lowly programmer and not into the solutions that you and the others
out 
 there do.
 
 Cool!!! Let's make this sucker jump through some hoops now that
the code 
 base
 is stable. This could turn out to be a lot more flexible that
what CA 
 provides
 as well. We could also allow a custom implementation to be loaded
from 
 the
 command line so the clients can load their own modules to handle this
in 
 their
 own way.
 
 Regards
 
 Kenneth
 
 Quoting [EMAIL PROTECTED]:
 
  Hello Kenneth,
  
  I've been looking on this issue also, because STRPCCMD is used
by almost 
 
  all of our customers. So, I think we should implement it next
to the 
  scanning solution. I was wondering though if the streamdetection
should 
 do 
  a callback to an interface, or should immediately run the command
as it 
 is 
  so basic/standard functionality that a callback would be overhead.

  
  Not sure though what to scan for.
  
  Wim.
  
  
  
  
  
  
  Kenneth Pouncey [EMAIL PROTECTED] 
  Sent by: [EMAIL PROTECTED]
  17/06/2005 09:36
  Please respond to
  tn5250j-general@lists.sourceforge.net
  
  
  To
  tn5250j-general@lists.sourceforge.net
  cc
  
  Subject
  [Tn5250j-general] STRPCCMD - STRPCO uses?
  
  
  
  
  
  
  
  
  Hello all
  
  I have seen a couple of people now trying to use this command.
Does 
  anybody
  have any ideas on it's use or do they use it? If so then
how?
  
  The reason I ask is that I do beleive we can do this within the
emulator 
 
  as
  well.  That would work for linux environments as well :-))
  
  If there is enough interest in this I will give it a try for
the next 
  release?
  
  Also if anybody has any technical documentation on this and would
share 
 it 
  with
  me that would

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

And from what do I start? 

Can I also do it at the beginning
of next week?









Kenneth Pouncey [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
17/06/2005 16:34



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD
- STRPCO uses?









Wim

Yep sure do. That is how I do the hotspots for http/https and the
such for
launching the different browsers.

Is there anyway for you to give it a go and finish up parsing the command?
I
have to get studying and put out a release tomorrow. Next week is
for my exams
as I have put them off long enough.

I wrote routines in the OperatingSystem module to do the calls for execute.
It
will need to be changed to do a wait though but that is not a problem the
code
is still there just commented out.

On thing is for windows and others for linux and such. You could
always call
the command.exe like CA does and it will pull up a dos window. If
not then it
will just execute the code. Either one is fine with me.

Regards


Kenneth




Quoting [EMAIL PROTECTED]:

 Hello Kenneth,
 
 this all sounds logical to me. So I think it will do. Do you know
how to 
 to launch the command and possibly wait for it to finish? I'd suggest
the 
 Runtime.exec() and Process calls?
 
 Wim.
 
 
 
 
 
 Kenneth Pouncey [EMAIL PROTECTED] 
 Sent by: [EMAIL PROTECTED]
 17/06/2005 16:04
 Please respond to
 tn5250j-general@lists.sourceforge.net
 
 
 To
 tn5250j-general@lists.sourceforge.net
 cc
 
 Subject
 Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
 
 
 
 
 
 
 
 Wim
 
 Yes I found that out after running a sniffer on CA. I will bet
it used to
 though because it always says to run the PCO.EXE command on the PC
side. I
 thought at first that was what was happening. Really did not
need to but 
 wanted
 to know for sure.
 
 Here are the codes that are specified in the data stream:
 
 -128 - 
 -4 - 
 -41 - P
 -61 - C
 -42 - O
 64 - 
 -125 - c
 -128 - 
 -95 - ~
 -128 - 
 -128 -  --- This says to wait for process to finish a value
of -127 
 says not
 to wait.
 
 Here is the code I added to writeToDisplay:
 
  
  
  
case 
 -128: // strpccmd
  if (screen52.getCurrentPos() == 2) {
  
   System.out.println(got a -128 command for
strpccmd +
 screen52.getCurrentPos());
   int[] crap = new int[15];
   for (int i=1;i11;i++) {
  
   crap[i-1]+=bk.getNextByte();
  
   System.out.println(crap[i-1] +  -  +
 codePage.ebcdic2uni(crap[i-1]));
   }
   for (int i=1;i11;i++)
  
   bk.setPrevByte();
   //sendAidKey(AID_ENTER);
  }
 
 There is no break; after this command so it continues processing as
normal 
 with
 the default:
 
 This dumps it all out. I did not parse the command from the
screen yet 
 though.
 
 Have kind of been thinking the best way to do this. I did not
want to 
 parse the
 command text directly from the datastream but will wait to build the
full 
 screen
 and set a variable to say we are in command mode. 
 
 At the end of the code right before we do the update of the screen
I will 
 check
 for this variable of whether true or false and if true will call the

 routine to
 parse the command from the already translated screen. 
 
 This will also skip the call to update the screen so we see no flash.
Also 
 with
 the aid of this you will not get that last screen while doing a signoff.
 
 I was parsing from the screen and checking for the codes but what
I was 
 thinking
 was that with different languages those codes might be different because

 of the
 translation from ebcdic to ascii. Thus the reason for parsing
it in
 WriteToDisplay and not the place of scan method.
 
 What do you think?
 
 
 Regards
 
 Kenneth
 
 
 Quoting [EMAIL PROTECTED]:
 
  Actually Kenneth, it is even simpler I think. The STRPCO command

 actually 
  doesn't do anything (anymore). Just the STRPCCMD fails if you
have not 
  issued a STRPCO in advance. It is just client access that scans
for what 
 
  is in the stream on STRPCCMD and indeed scrapes the command and
runs it 
  and does an enter. As such it seems the screen has never been
displayed.
  
  HTH,
  wim
  
  
  
  
  
  Kenneth Pouncey [EMAIL PROTECTED] 
  Sent by: [EMAIL PROTECTED]
  17/06/2005 10:52
  Please respond to
  tn5250j-general@lists.sourceforge.net
  
  
  To
  tn5250j-general@lists.sourceforge.net
  cc
  
  Subject
  Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
  
  
  
  
  
  
  
  Wim
  
  Well first off that test screen you have is pretty cool :-) 
  
  Second it looks sort of like what we did for the scanner. So
basically 
  what it
  does is this. 
  
  1) Sends the screen with a special command modeled after
our scanner 
  stuff.
  2) if it does receive this and PCO is active then it will
read the 
 screen 
  and
  not display it. Even sending an Enter key afterwards could
be. Would 
  actually
  need to sniff the interaction but I think that is what it does.
  
  3) If it is not active just display the screen