Re: Re: Problem about 4J' s WTK Client

"Leo Schubert" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <027901c571c7$d1b7ee50$0400a8c0@LEOIBM>
Hi arvind, please try
 ".\bin\wtk.exe -f fgl2c\doserv1.tcl" without arguments
Then it searches for the next available port number.
You can even use ".\bin\startwtk" when

in wtksrv.ini
make shure, that

[4GLSERVER]
DEFAULT_STARTUP_ARG=AUTO

and make shure that
WTK_4GLSERVERPORT is not set in the same section!

Then multiple invokations on the same desktop of "startwtk" invoke the same Frontend for the same 
port.

The easiest thing to start applications with WTK and fglrun.exe on the same windows machine without 
having a black console window in the first place, use wtk together with a tcl-script called 
"startfglrun.tcl" (in the fgl2c sub directory). It doesn't matter if this is a terminal server or 
not. If -serverport is not given then the next available port is used and this should work in every 
case.
You can put this rather long command line in a shortcut and get more "windows" feeling  instead of 
calling "fglrun" directly.

# <wtkinstalldir>\bin\wtk.exe -f fgl2c\startfglrun.tcl
#                             -FGLDIR <FGLDIR>
#                             -program <fglrun argument>
#                             ?-FGLPROFILE c:\progra~1\etc\fglprofile4 ?
#                             ?-directory  c:\progra~1\fgl2c\demo ?
#                             ?-serverport <0|1|2..> ?
#
#      default directory is the path of the "-program" argument
#      (please give always full paths if not using "-directory")
#
#      default serverport is auto
#
#      after finishing fglrun, the server will be terminated
#
#      WARNING: the ability to see the error if something wents wrong
#               with the startup of "fglrun" is VERY small
#
# sample :
# \program files\4glsrv\bin\wtk.exe -f fgl2c\startfglrun.tcl
#                                   -FGLDIR c:\progra~1\fgl2c
#                                   -program p2
#                                   -FGLPROFILE c:\progra~1\etc\fglprofile4
#                                   -directory  c:\progra~1\fgl2c\demo
#
Please let me know if it works for you.
Kind Regards, Leo
----- Original Message ----- 
From: "arvind kumar" <[email protected]>
To: <[email protected]>
Sent: Thursday, June 09, 2005 8:02 PM
Subject: RE: [fourjs-users] Re: Problem about 4J' s WTK Client


> Hi David
>
> When I put ".\bin\wtk.exe -f fgl2c\doserv1.tcl 1" in
> batch file then it was everywhere showing server port
> 6401 and minimizing wtk listening.
>
> I did the below installation process but same problem
> is occuring now I think there are some problems in my
> MS-Windows 2000  Terminal server installation or TS
> licensing process.
>
> I am thinking to reinstall our Termianl server can you
> tell me some important points that should be taken
> care
> during installation of MS-W2K TS Or is there any
> special procedure to install TS for 4JS.
>
> Please suggest me
>
> Thanks and Regards
> Arvind Kumar
>
>
>
>
> --- "David N. Heydon"
> <[email protected]> wrote:
>
>> Hi Arvind,
>>
>> When you put ".\bin\wtk.exe -f fgl2c\doserv1.tcl 1"
>> in the batch file, was
>> the minimized wtk listening on 6401 or 6400?
>>
>> Concerning the install on TS, there is not much to
>> tell. One thing to be
>> aware of is to put the TS into "install" mode before
>> running the
>> compiler/wtk install.
>>
>> You can either do this manually:-
>>
>> change user /install
>> run install
>> change user /execute
>>
>> or
>>
>> Run the install program via the "cd/floppy" button
>> of add/remove programs in
>> the control panel. It does all the above
>> automatically.
>>
>> Finally I suggest you install wtk before the
>> compiler.
>>
>> Good luck
>>
>> David
>>
>> -----Original Message-----
>> From: arvind kumar [mailto:[email protected]]
>> Sent: 08 June 2005 20:37
>> To: [email protected]
>> Subject: RE: [fourjs-users] Re: Problem about 4J' s
>> WTK Client
>>
>>
>> Hi David
>>
>> Thank you very much for your response and support,
>> and
>> also I am sorry to disturb you again and again.
>>
>> I checked the things as suggested by you and
>> following
>> things are noticed.
>>
>> When I am running the program on terminal server
>> itself then fglssrv.log shows
>>
>> WINSTATIONNAME=console
>> arg1=-n
>> arg2=0
>>
>> if I am running the program on a workstation
>> using remote desktop connection to terminal
>> server then it shows
>>
>> on 1st workstation
>>
>> WINSTATIONNAME=RDP-TCP#1
>> arg1=-n
>> arg2=0
>>
>> on 2nd workstation
>> WINSTATIONNAME=RDP-TCP#2
>> arg1=-n
>> arg2=0
>>
>> and so on
>>
>> For debug I tried to change the details in
>> fglssrv.bat
>> file manually then our program does
>> not run and gives an error like.
>>
>> connect:localhost:6400
>> program stopped at "program name", "line number xxx"
>> forms statement error number -6300
>> can not connect to GUI.
>>
>> For your information I put following in fglssrv.bat
>>
>> e:
>> cd\wtk350
>> .\bin\wtk.exe -f fgl2c\doserv1.tcl 1
>>
>> Now I am thinking that there are some problems in
>> the
>> installation of our terminal server that is why the
>> server port of WTK client is not increasing.
>>
>> David this is my first installation of MS-TS and
>> 4J's on it So may be I have missed something.
>>
>> If possible please help me in this regard (like what
>> are the things to be taken care while installing a
>> MS-TS) that can enable me to start our 4js program
>> on the TS in your possible time frame.
>>
>> If there is any web site where I can get the
>> document
>> related to this topic, please forward me the link or
>> site address.
>>
>>
>> Thanks and Regards
>> Arvind Kumar
>>
>>
>> --- "David N. Heydon"
>> <[email protected]> wrote:
>>
>> Hi Arvind,
>>
>> It sounds like environmentally everything is correct
>> (it is autostarting but
>> with no port offset). For some reason it looks like
>> the compiler does not
>> think you are running on a terminal server. You
>> could put some debugging
>> prompts into your fglssrv.bat file. i.e.
>>
>> echo Winstationname = %²E%
>> c:\fglssrv.log
>> echo arg1 = %1 >>c:\fglssrv.log
>> acho arg2 = %2 >>c:\fglssrv.log
>>
>> Try running a program an see what ends up in the log
>> file. You are running
>> the fglrun from a terminal servers command prompt
>> aren't you? Its the
>> compilers responsibility to identify the port offset
>> (in %2). I'm running
>> out of suggestions for you! I think you should
>> consider upgrading your
>> compiler version to v3.50 or later to see if that
>> fixes it.
>>
>> Cheers,
>>
>> David
>>
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam
>> protection around
>> http://mail.yahoo.com
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.