TSE to implement features on the web?

43 views
Skip to first unread message

Fred H Olson

unread,
Feb 12, 2023, 11:27:28 AM2/12/23
to Semware
Is there a way to use TSE to implement features on the web?

Specfically today I made a note to myself pondering a simple web page
that allows for something like compressed view searching.

More specifically today I was imagining a tool to list all the MN
organizations in a file (that is a list organizations with a keywords
of what they do) whose description includes "bik" or "walk" or
"transit"

Is there another easy way to do this?

FRed

--
Fred H. Olson Minneapolis,MN 55411 USA (near north Mpls)
Email: fholson at cohousing.org 612-588-9532
My Link Pg: http://fholson.cohousing.org

knud van eeden

unread,
Feb 12, 2023, 12:21:12 PM2/12/23
to Semware
There would be a rather easy solution.

That is there should be a dedicated computer or virtual machine be running on the Internet somewhere.

One can rent such systems at the Internet providers, e.g. GoDaddy, ...

On that computer (e.g. with Microsoft Windows or Linux) TSE g32.exe is installed.

Then a web server (e.g. Apache) and a programming language (e.g. PHP)
should additionally be running continuously and listening on some port.

Similar to CGI earlier, nowadays one sends /uploads then the TSE source
code file to that computer on the Internet, e.g. via copy/pasting it in a HTML box or
browsing to it and uploading it.

Then that program is stored on that remote computer somewhere and something like

 sc32.exe <yourTSEsourceprogram>

 g32.exe -e<yourTSEmacro)

 or choosing TSE commands from a pre-installed menu or List().

runs and the output of your program or the commands is piped back to
the remote user (e.g. you) in a web page or similar.

Of course somebody must be running that / paying for that always on
hardware computer or virtual machine.

And one also needs TSE be running in some sandbox on that computer, for
security reasons.

No such systems are available, so this is *not possible*.

with friendly greetings
Knud van Eeden


--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+unsub...@googlegroups.com.

knud van eeden

unread,
Feb 12, 2023, 12:37:24 PM2/12/23
to Semware
> Fred wrote:
>> Is there a way to use TSE to implement features on the web?
>> Specfically today I made a note to myself pondering a simple web page
>> that allows for something like compressed view searching.
>> More specifically today I was imagining a tool to list all the MN
>> organizations in a file (that is a list organizations with a keywords
>> of what they do) whose description includes "bik" or "walk" or
>> "transit"
>> Is there another easy way to do this?

===

Doing actions from within TSE and sending this to a web page is certainly possible.

Typically it will be a combination of:

1. -A computer running somewhere (e.g. your computer at your Internet
    provider, or your computer at home to which others have access e.g.
    via public IP address (there are commands to see what that is for
    any computer).

2. -There a web server is running (e.g. Apache)

3. -You have e.g. PHP pages created or collected which are stored in a (e.g. if Apache htdocs) directory of that computer.

4. -Then you connect to that computer by running from TSE a URL like e.g.

     http(s):// < yourcomputernamesomewhere > \ < yourPHPwebpagename >.php

    or

     < your public IP address from your computer> :// < yourcomputernamesomewhere > \ < yourPHPwebpagename >.php

    E.g.

      http(s)://10.30.40.50\foobar.php

     or

      http(s)://10.30.40.50\foobar.html

5. -You then e.g. upload information from within TSE to that PHP page by passing parameters at the end of this URL.

6. -That is all 'business as usual' altogether.

7. -That PHP program creates then e.g. a table or something from the TSE data you uploaded somewhere.

8. -Then anyone connecting in e.g. his browser app on his mobile device
    (E.g. mobile telephone Android, iOS, ...) or browser in the PC
    (Chrome, Edge, FireFox, ...) can connect to that web page and see
    (the) (created via you in TSE) output.

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Feb 12, 2023, 12:40:06 PM2/12/23
to Semware
> Fred wrote:
>> Is there a way to use TSE to implement features on the web?
>> Specfically today I made a note to myself pondering a simple web page
>> that allows for something like compressed view searching.
>> More specifically today I was imagining a tool to list all the MN
>> organizations in a file (that is a list organizations with a keywords
>> of what they do) whose description includes "bik" or "walk" or
>> "transit"
>> Is there another easy way to do this?

=== 

A simplest solution woult be that TSE creates that e.g. HTML webpage which you
then upload business as usual to your Internet provider, then users can access
it there. 

knud van eeden

unread,
Feb 12, 2023, 12:42:19 PM2/12/23
to Semware
And if you have no Internet provider then use e.g. free GitHub or free SourceForge and
upload your TSE generated web pages (text, ...) there.

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/824518819.612938.1676223602282%40mail.yahoo.com.

Carlo Hogeveen

unread,
Feb 12, 2023, 12:51:56 PM2/12/23
to sem...@googlegroups.com

> Is there a way to use TSE to implement features on the web?

Yes.
It does require access to the webserver.
Look up how cgi scripts work, for example on
https://computer.howstuffworks.com/cgi.htm
where you can peruse multiple pages about it.
A cgi script can be written in almost any language.
It can be as simple as a Linux shell script or a Windows .cmd script.
Such a script can call TSE with a macro, passing the script's input to the macro, and the macro generating the required output file to probably return as a webpage in your case.
In the TSE macro you can of course use all TSE's features, as you requested.

Note that this is a very literal answer to your question.
A more common solution would be to learn JavaScript, and write a JavaScript program that runs in the client's browser and can compress search results as the user types.

Carlo



knud van eeden

unread,
Feb 12, 2023, 1:28:49 PM2/12/23
to Semware
The big problem and stopper for using e.g. CGI and or a dedicated computer at a provider are the costs.

They typically range from $1000 to $2000 or more per year.

Somebody would have to pay for that.

Alternatively somebody has to run a computer where he/she lives (continuously available also or that web page is going to be down).

One could for example set up a GoFund me page where one can donate for maintaining such a dedicated server with TSE installed on it, but continuity is then not guaranteed, as one e.g. does not continue to donate.

In case there would enough be invested e.g. Semware could maintain that and or somebody else. That has also to be a viable
solution or possibility, which is very certainly not available.

Recreating (large) parts of TSE (and its algorithms) could be done in other web computer languages (PHP, JavaScript, JSP, ...), but in general I would say that is not going to happen in a lifetime.

Maybe, maybe, when TSE would become open source then (hundreds, thousands, ... of) (other) people might join and do such actions, but all that is extremely unlikely or impossible and or is not going to happen at all in a lifetime.



Fred H Olson

unread,
Feb 12, 2023, 2:52:05 PM2/12/23
to sem...@googlegroups.com
Thanks for the reply Carlo. I'll put studying the website you mentioned
on my todo list. I see that I do have one cgi script running on my web pages
It is from
https://www.perlscriptsjavascripts.com/perl/upload_lite/users_guide.html

Tinkering with it might nelp me learn (I find modifying things is a way to
get started.)

Thinking about it more, a "canned", site-specific web search may
be another way to get the particular functionality I had in mind.
I currently have this "canned" search on my link page

<iframe src="https://duckduckgo.com/search.html
?site=fholson.cohousing.org&prefill=Search this site"
style="overflow:hidden;margin:0;padding:0;
width:408px;height:40px;" frameborder="0"></iframe>

But being able to use TSE appeals to me. I have sure been pleased
with being able to use TSE to write email (with the Alpine text based
email program that I use - https://en.wikipedia.org/wiki/Alpine_(email_client)

On Sun, 12 Feb 2023, 'knud van eeden' via SemWare TSE Pro text editor wrote:

> The big problem and stopper for using e.g. CGI and or a dedicated
> computer at a provider are the costs.

My isp ( https://www.tigertech.net/ ) states relative to shell access:
This system is made available to allow our hosting customers to
configure their website scripts and settings. Other usage (e.g.,
running background processes and daemons) is not allowed.

Apparently running CGI is not prohibited, since I do. See above.
I use Alpine and TSE running at my isp via shell access regularly.

Fred

Fred

knud van eeden

unread,
Feb 12, 2023, 3:07:55 PM2/12/23
to sem...@googlegroups.com
> Fred wrote:

> My isp ( https://www.tigertech.net/ ) states relative to shell access:
This system is made available to allow our hosting customers to
configure their website scripts and settings. Other usage (e.g.,
running background processes and daemons) is not allowed.
Apparently running CGI is not prohibited, since I do. See above.
I use Alpine and TSE running at my isp via shell access regularly.

Yes, but ask your provider if you can run arbitrary executables (like TSE g32.exe).

Please let me know the result but I can guess the outcome probably. ;-)

knud van eeden

unread,
Feb 12, 2023, 3:08:38 PM2/12/23
to sem...@googlegroups.com
> Fred wrote:

>> Is there a way to use TSE to implement features on the web?
>> Specfically today I made a note to myself pondering a simple web page
>> that allows for something like compressed view searching.
>> More specifically today I was imagining a tool to list all the MN
>> organizations in a file (that is a list organizations with a keywords
>> of what they do) whose description includes "bik" or "walk" or
>> "transit"
>> Is there another easy way to do this?

===

If I would do it (e.g. to connect to that computer when not at the place where one lives)

1. -Have (a) (your) computer running locally continuously day and night.

2. -Install a virtual machine (e.g. Oracle VirtualBox)

3. -Install an operating system on it (e.g. Microsoft Windows)

4. -Install a web server on it (e.g. Apache)

5. -Install TSE on it (TSE is freeware now, so rights issues are now covered)

6. -Install PHP on it

7. -Create PHP web pages to upload data (e.g. parameters, TSE source code files, ...)

8. -Create PHP web pages to connect to TSE g32.exe executable or e32.exe with the program as parameter.

9. -Sending the output to STDOUT / STDERROR and or creating in TSE the response web pages and storing that on that computer.

10. -Getting the public IP address of your virtual machine, by running in a browser in the virtual machine
     ( e.g. https://www.whatsmyip.org/ ). Everybody (including yourself can access that IP address
     if the firewall is open from abroad.

11. -Then doing the action on TSE e.g. from your mobile telephone browser.

12. -The virtual machine should act as a sandbox, so should covering the security.

13. -When one is back or has other means to access your own local TSE that computer could be switched off again
     and or access disabled.

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Feb 12, 2023, 6:36:17 PM2/12/23
to sem...@googlegroups.com
To accelerate the learning process, this would already be a good start, assumed:

"
ChatGPT: "How to run an executable program from PHP?"

1. -To run an executable program from PHP, you can use the exec
    function. The exec function allows you to run shell commands from
    your PHP script. Here is an example that demonstrates how to use the
    exec function:

--- cut here: begin --------------------------------------------------
<?php
$output = array();
exec( "f:/wordproc/tse_beta/g32.exe", $output );
print_r($output);
?>
--- cut here: end ----------------------------------------------------

2. -Save this in the htdocs directory of your Apache server e.g. as

     foobar.php

3. -Run your Apache server (start httpd.exe)

4. -Type in any browser


5. -That will start TSE (tested and that works here)

6. -Tested successfully on
    Microsoft Windows 10 Professional (64 bits)

In the above example, /path/to/executable is the path to the executable
program that you want to run, and arg1 and arg2 are arguments that are
passed to the program. The output of the program is captured in the
$output array.

Note that you should be careful when using the exec function, as it can
be a security risk if used improperly. You should never pass
unsanitized user input directly to the exec function, as it can be used
to execute malicious code on your server.
"

===

Guy Rouillier

unread,
Feb 13, 2023, 3:06:07 AM2/13/23
to Semware TSE Pro
I've read your messages and all Knud's replies, and I'm still unclear
what you are trying to achieve. Are you trying to get the web server to
generate that list of organizations in a file, or do you just want the
web server to host the list? From your description, it seems like you
can just generate the list on your private system, and then upload the
list onto a server for viewing. You could use practically any web host
to do that. Even large email providers like Google will allow you to
host a small number of web pages for free.

If instead you want to (for example) put up a small data entry form and
have the web server generate the list of organizations based on values
entered on the form? Is so, then you would want a web hosting site that
allows for active content. That is, content generated dynamically based
on the entered values. I did that sort of thing for a living before
retiring. Those sorts of things are also widely available, some for
free with limits on page hits per month (so you don't overuse their web
server resources.)

--
Guy Rouillier
>--
>
>---
>You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

Fred H Olson

unread,
Feb 13, 2023, 10:44:25 AM2/13/23
to Semware TSE Pro
I had in mind an interactive facility, user would enter key word and get a
list of those entries containing that key word.

Fred
> https://groups.google.com/d/msgid/semware/em423b041d-d86e-48d0-ae82-554635085456%40bc3a4541.com.

S.E. Mitchell

unread,
Feb 13, 2023, 11:41:53 AM2/13/23
to sem...@googlegroups.com
On Sun, Feb 12, 2023 at 3:07 PM 'knud van eeden' via SemWare TSE Pro
text editor <sem...@googlegroups.com> wrote:
>
> > Fred wrote:
>
> > My isp ( https://www.tigertech.net/ ) states relative to shell access:
> I use Alpine and TSE running at my isp via shell access regularly.
>
> Yes, but ask your provider if you can run arbitrary executables (like TSE g32.exe).
>

I use the same ISP. They are great, and a pleasure to work with. I've
been with them ever since Fred told me about them. Absolutely no
complaints. Been at least 10+ years.

Back when we took orders, all the work was performed by custom cgi
programs we developed - mostly in C.

tigertech is very understanding, as long as you are not abusing the
system or violating their stated rules.
--

knud van eeden

unread,
Feb 13, 2023, 11:53:50 AM2/13/23
to sem...@googlegroups.com
That sounds interesting. I opened a support ticket now at TigerTech to ask what is possible.

Thanks
with friendly greetings
Knud van Eeden

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+unsub...@googlegroups.com.

knud van eeden

unread,
Feb 13, 2023, 1:21:33 PM2/13/23
to sem...@googlegroups.com
Verdict: 

As already predicted by me, that use case of running TSE on their servers is thus not possible at all at TigerTech technologies.

with friendly greetings
Knud van Eeden

===

"Knud van Eeden wrote:"

[Q] >Would it be possible to install and run a text editor executable if I have a domain?
E.g. installing a program called g32.exe and then using e.g. PHP (exec
"g32.exe" ) to execute uploaded source code programs using that
executable g32.exe.
If yes, that is possible, how much would that cost?

===

[A] Thank you for writing!

That would not be possible using our services because .exe files require
a Windows environment to run and we use Linux servers. You would need to
find a company that offers Windows servers and also allows what you are
looking for.

Please let us know if there is anything else we can do. Thank you again!

Daniel Frandsen, Tiger Technologies

===

Daniel,

[Q] That executable program has an executable that also can run on
    Linux, as there is a Linux version also, that is e32 instead.
Would it in that Linux case be possible to install and run a text
editor executable if I have a domain at your company?
E.g. installing an executable program called ./e32 and then using e.g.
PHP (exec "./e32" ) to execute uploaded source code programs using that
executable e32.
If yes, what would be  the costs?

Thanks
with friendly greetings
Knud van Eeden

===

On Monday, February 13, 2023 at 06:03:30 PM GMT+1, Tiger Technologies <sa...@tigertech.net> wrote:

[A]

We apologize for not mentioning this before, but this still would not be
possible using our services even with a Linux compatible version. We
only allow running CGI programs related to the serving of web pages.
Based on the description of what you are looking for, you will almost
certainly need a VPS or something similar, which we unfortunately do not
offer.

--
Daniel Frandsen, Tiger Technologies

===

"Knud van Eeden wrote":

[Q]

It still sounds useful.
As the idea is that one runs executable e32 via CGI and that generatesas
output a web page which can be seen on one's browser as a response.
So in that sense the e32 program would fulfill that constraint.

---

[A]

Hi, I guess we have not been clear enough, but we are trying to politely
say no to this.

We do not support anything like this, and it would not work reliably. If
you are running arbitrary programs, you need a VPS or Docker or something
similar that lets you also control the libraries it links to (and we
do not offer anything like that), not limited shared hosting in a
restricted environment where the environment may change at any time,
which is all we offer.

We are sorry we are not the right company for this. Thank you again!

Robert Mathews, Tiger Technologies



knud van eeden

unread,
Feb 13, 2023, 1:46:27 PM2/13/23
to sem...@googlegroups.com
Verdict:

Best to do the wanted on a VPS (=Virtual Private Server). Then best to choose Microsoft Windows as most general knowledge about it for most. The prices seem very reasonable.




To be investigated further (e.g. by me is the plan...)



knud van eeden

unread,
Feb 13, 2023, 2:12:29 PM2/13/23
to sem...@googlegroups.com
OK, I am in the process of ordering a Microsoft Windows VPS (costs $10 per month), only the order does not get through at this moment.

If it all works out after the order gets possibly through the coming time let me try or I plan to get TSE running there as an experiment for the curious.

with friendly greetings
Knud van Eeden

To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/960292974.1095547.1676313984493%40mail.yahoo.com.

Guy Rouillier

unread,
Feb 14, 2023, 4:24:35 AM2/14/23
to Semware TSE Pro
You should have phrased your question to specify that you *could* do
this in a Linux environment. When you said "installing a program called
g32.exe" that automatically indicates you are running a Windows
executable, since Linux executables don't have a .exe suffix. The
overwhelming majority of web servers run Linux. But I haven't seen
anything in Fred's situation that the Linux version of TSE could not
handle.

--
Guy Rouillier


On 2/13/2023 1:21:27 PM, "'knud van eeden' via SemWare TSE Pro text
>an email to semware+u...@googlegroups.com.
--

---
You received this message because you are subscribed to the Google
Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to semware+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/semware/49123966.1056803.1676312487964%40mail.yahoo.com
<https://groups.google.com/d/msgid/semware/49123966.1056803.1676312487964%40mail.yahoo.com?utm_medium=email&utm_source=footer>.

knud van eeden

unread,
Feb 14, 2023, 4:48:34 AM2/14/23
to Semware TSE Pro
Yes, sure, if TSE Linux would have been an option here then working with that option indeed.

with friendly greetings
Knud van Eeden

>an email to semware+unsub...@googlegroups.com.
>To view this discussion on the web visit

--

---
You received this message because you are subscribed to the Google
Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to semware+unsub...@googlegroups.com.
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+unsub...@googlegroups.com.

knud van eeden

unread,
Feb 14, 2023, 7:34:31 PM2/14/23
to Semware
> Fred wrote:
On Sunday, February 12, 2023 at 05:27:31 PM GMT+1
Is there a way to use TSE to implement features on the web?
Specfically today I made a note to myself pondering a simple web page
that allows for something like compressed view searching.
More specifically today I was imagining a tool to list all the MN
organizations in a file (that is a list organizations with a keywords
of what they do) whose description includes "bik" or "walk" or
"transit"
Is there another easy way to do this?

FYIO:

1. I have now bought access to a remote remote computer (=Virtual Private Server (=VPS)).

2. It runs Microsoft Windows Server

3. One can access it by running an executable on your computer (=Microsoft Remote Desktop (=RDP)).

4. I downloaded and Installed now TSE 4.49e on it and did run the first program

PROC Main()
 Warn( "Hello world" )
END

5. It is basically thus just a computer which you can access remote and install any program (e.g. TSE) on it.

6. One way I assume can be used to access that computer remote via a browser e.g. on your mobile telephone would be to use 

7. One can then setup that computer remote access by allowing it.

8. Then one can access remote TSE and let it run any TSE macro (e.g. after uploading your TSE source code to that computer).

9, Other options would probably be something like command line SSH, ..., FTP to upload, I will have to look into it and into the details the coming (long) time.

10. This would and is thus a personal solution to have kind of always access to a TSE.

11. But setting it up for any user to access it via a browser would be another step thus (running an (Apache) web server there, 
      e.g. PHP and TSE continuously running,
      but then e.g. one has to deal with allowing user access, security which is important, 
      ... which is another big and not so easy step and which I probably will not do, I will have to see and plan.

12. Maybe first setting it up on the computer here locally and if that works transferring similar to the remote computer.

13. But now thus personally in principle access to a runnable TSE g32.exe from anywhere abroad, I assume, this will all have to be tested further.

14. This will have to be worked upon the coming time (2023+ year(s)) is the plan and I will have to further look into the details, nothing there yet in principle.

Carlo Hogeveen

unread,
Feb 14, 2023, 8:05:58 PM2/14/23
to sem...@googlegroups.com

> Is there a way to use TSE to implement features on the web?

Fred,

I might have steered you wrong in answering that a cgi script could do this.

I tested it with Linux TSE ("e") with my Linux server's Apache webserver.
The bulk of my time went to ordinary permission problems and selinux ☹ permission problems.
Now, when started by the webserver, "e" keeps aborting on a "Segmentation fault".
The same "e" works perfectly in all other circumstances, including when started as the webserver user.
I might still be missing some configuration error, but I had a horrible thought:
Maybe "e" only aborts when started by the webserver, because the webserver's context does not support a console application?
That is not something I know how to solve, and it would invalidate my previous answer.

Carlo



knud van eeden

unread,
Feb 14, 2023, 8:43:58 PM2/14/23
to Semware
Yes connected using remotedesktop.google.com/support in my mobile telephone Chrome app to that remote computer screen and it is possibly to actions like typing e.g in TSE and use the mouse on that remote computer. So in principle this might be a possibility to further check.



See screenshot from my mobile telephone screen.

Sent from Yahoo Mail on Samsung Galaxy S23 Ultra 512 gigabytes

knud van eeden

unread,
Feb 14, 2023, 11:13:09 PM2/14/23
to Semware
OK, I have now just installed Apache web server + PHP on that remote computer.

In line with what Carlo reported on Linux using the 'e' executable, here on this Microsoft Windows remote computer
also 

 e32.exe 

is not really working.

If I use PHP exec and try to run e32.exe by typing http://localhost/ddd.php it hangs in the browser.

=> But if I replace it with g32.exe (e.g. at the same directory location) then it works for sure and via the browser I can start g32.exe, no problem ...

so ISSUE: ===> So something is happening when using that e32.exe is the conclusion. Not sure what. It must be something in the e32.exe source code I guess. 

---

But thus g32.exe works OK and that will then thus be used to further experiment and be curious.




knud van eeden

unread,
Feb 14, 2023, 11:26:45 PM2/14/23
to Semware
OK, by opening port 80 on that computer in the firewall (by creating a rule) on that remote computer

I was able to via the browser run http://:80\ddd.php

and could on the remote computer start 

 g32.exe

via my browser thus here.

So that all works as expected now...

Then e.g. passing parameters like

 g32.exe -eMYTSEMACRO.MAC 

to run TSE programs on that remote computer.

...



Guy Rouillier

unread,
Feb 15, 2023, 3:17:50 AM2/15/23
to Semware TSE Pro
Knud and Carlo, I'm wondering if the console version is aborting because it is actually trying to load a console and failing.  Have you tried setting up a macro to run at start up time, and then exiting from that macro after doing something trivial to prove that it ran?  That would be Fred's scenario: he just wants to execute a macro on supplied input to generate the output file.

Just an idea.

--
Guy Rouillier
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/2089205026.1896614.1676434384719%40mail.yahoo.com.

knud van eeden

unread,
Feb 15, 2023, 3:48:39 AM2/15/23
to Semware TSE Pro
I plan to do the following:

1. It seemed that I could get e32.exe to run using php.exe to run the same ddd.php file as the Apache server run.

2. If yes, then it has very probably to do something with the Apache server is the assumption as that is the distinguishing factor then.

3. Then e.g. trying also with Microsoft IIS server to see if same behavior with the same ddd.php file.

4. I  check it also locally using Apache server on my local machine and see what happens if using e32.exe.

5. g32.exe works thus, so is already useable is assumed.

...

Carlo Hogeveen

unread,
Feb 15, 2023, 3:54:08 AM2/15/23
to sem...@googlegroups.com

Guy,

> I'm wondering if the console version is aborting
> because it is actually trying to load a console and failing.

I wonder the same thing, that, if called by the Linux webserver, TSE aborts because TSE starts by opening a console screen. Screens do not make sense in the back-end of a webserver, even if they do not do further screen input and output.

> Have you tried setting up a macro to run at start up time,
> and then exiting from that macro after doing something trivial to prove that it ran?

Yes, I did.
I had a cgi shell script call "e -eMyMacro", where MyMacro was:
proc Main()
AbandonEditor()
End Main
and then TSE aborts on a "Segmentation fault" too.

As far as I currently know, there is no way to keep TSE from starting to build a console screen.

My result is in Linux.
Maybe Knud will find that a Windows webserver is more forgiving.

Carlo



Guy Rouillier

unread,
Feb 15, 2023, 4:14:34 AM2/15/23
to Semware TSE Pro
Carlo, thanks for clarifying. I'm out of ideas. Fred, if you are still
following, are you doing anything further in TSE once you get the
results from the remote site? I'm just wondering if a simpler approach
might still achieve what you are after. For example, wget or curl and
made to send requests to a remote server and capture the returned
results. So, if you aren't wedded to using TSE for this, one of those
two might get you where you want to go with less difficulty.

--
Guy Rouillier
>--
>
>---
>You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/semware/002301d9411b%240f67e5d0%242e37b170%24%40ecarlo.nl.

knud van eeden

unread,
Feb 15, 2023, 6:32:40 AM2/15/23
to sem...@googlegroups.com
For now the most likely explanation is thus indeed that it has something to do with the
console type (e.g. console type of e32.exe versus the console type of g32.exe), which can not expand and or be created
somehow.

Because also on Microsoft Windows Server 2019 that PHP web page was hanging when
running it with e32.exe.

<?php
exec( 'e32.exe' ...);
?>

That would mean that it is thus very probably operating system (Linux, Microsoft Windows, ...) (console) issue
related. Not sure why, but that is thus the way it probably is.

On Linux that 'e' can not run is thus a (big) issue, 
because there one has only the 'e' executable (and thus no 'g' executable) thus as far as I know.

On Microsoft Windows one should thus have as stated g32.exe which can do the actions and should also
in general be more versatile than e32.exe.






Carlo



--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+unsub...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/semware/002301d9411b%240f67e5d0%242e37b170%24%40ecarlo.nl.

knud van eeden

unread,
Feb 15, 2023, 6:34:57 AM2/15/23
to sem...@googlegroups.com
I checked the Apache logs (e.g. error.log) but saw no indication about what was happening.

Maybe increasing the Apache log level to maximum would reveil more...

knud van eeden

unread,
Feb 15, 2023, 6:56:26 AM2/15/23
to sem...@googlegroups.com
Not sure, but maybe Linux 'nohup' might be of use?

Otherwise e.g. memory access related

This is what ChatGPT informs about it:

"
What causes segmentation fault in Linux?

A segmentation fault (often abbreviated as segfault) occurs when a program attempts to access a memory location that it's not allowed to access, resulting in a crash. In Linux, this is typically caused by one of the following:

  1. Dereferencing a null pointer: If a program attempts to read from or write to a memory address that has not been allocated, it will result in a segmentation fault. This can happen if a pointer is not properly initialized or is set to null.

  2. Accessing an out-of-bounds memory location: If a program attempts to access a memory location outside the range of memory that has been allocated to it, it can result in a segmentation fault. This can happen if a buffer is overrun, for example.

  3. Stack overflow: If a program's call stack grows too large, it can overwrite memory that it's not supposed to access, resulting in a segmentation fault.

  4. Memory corruption: If a program corrupts memory (either intentionally or unintentionally), it can result in a segmentation fault when that memory is accessed.

  5. Using an uninitialized variable: If a program uses a variable that has not been properly initialized, it can result in a segmentation fault.

In general, a segmentation fault indicates a serious error in a program and should be investigated and fixed as soon as possible. Developers can use debugging tools like gdb to identify the cause of a segmentation fault and fix the underlying issue.


"

It might be an issue thus within executable 'e'.

with friendly greetings
Knud van Eeden



Carlo



--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+unsub...@googlegroups.com.

Fred H Olson

unread,
Feb 15, 2023, 10:43:30 AM2/15/23
to sem...@googlegroups.com
Thanks for the reply. Interesting. Fred

More reply below tho little relation to TSE generally so feel free to
ignore.

On Wed, 15 Feb 2023, Carlo Hogeveen wrote:

> [ FRed wrote: ]
> > Is there a way to use TSE to implement features on the web?

To clarify what I did not make clear enough in my original post:
I had in mind a web page accessed by a browser that had an interactive
feature that one could enter a key word (or words?) and it would
display a subset of lines from a file that contained the keyword(s).
Like TSE's compressed view function which I use often interactively.

Since I use the Linux version of TSE on a remote server via SSH (as
well on my home system), that is the context I had in mind. I am
composing this reply on the remote TSE instance.
This reminds me of a problem that I have long been unable to resolve
that may be similar - tho little relation to TSE so feel free to ignore
the rest of this message. I do use a TSE macro as a scripting language
for the digital audio system the problem is part of.

I have a Linux bash shell script that monitors a file being created by
another program (capturing streaming audio). The script displays a
message on the terminal every 12 seconds if the file has grown and
if has not grown (which happens occasionally) it plays a tiny audio file
(ie "beeps"). It seems to work fine if I start it from a terminal but
if I start it with the "at" function ( used to schedule commands to be
executed once, at a particular time ) it fails. I've tried having "at"
start a terminal which in turn started the script running but still had
problems.

Fred

knud van eeden

unread,
Jul 18, 2025, 4:33:26 PM7/18/25
to SemWare TSE Pro Text Editor
> Specfically today I made a note to myself pondering a simple web page
that allows for something like compressed view searching.

More specifically today I was imagining a tool to list all the MN
organizations in a file (that is a list organizations with a keywords
of what they do) whose description includes "bik" or "walk" or
"transit"

1. So what is the current state about this?

2. Is there also a TSE .s program available for this?

with friendly greetings
Knud van Eeden


On Sunday, February 12, 2023 at 05:27:31 PM GMT+1, Fred H Olson <fho...@cohousing.org> wrote:


Is there a way to use TSE to implement features on the web?

Specfically today I made a note to myself pondering a simple web page
that allows for something like compressed view searching.

More specifically today I was imagining a tool to list all the MN
organizations in a file (that is a list organizations with a keywords
of what they do) whose description includes "bik" or "walk" or
"transit"

Is there another easy way to do this?

FRed

--
Fred H. Olson  Minneapolis,MN 55411  USA        (near north Mpls)
    Email:        fholson at cohousing.org      612-588-9532

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

knud van eeden

unread,
Jul 18, 2025, 7:10:19 PM7/18/25
to SemWare TSE Pro Text Editor
> Not interested in this project further, further follow-up canceled

IT was this project below thus, not the other one of course.

That eigenvalue / eigenvector project is in full swing.


Reply all
Reply to author
Forward
0 new messages