Roland_Msl
September 24th, 2016, 09:54 AM
My main problem at changing from Windows to Linux had been my Perl / HTA programs,
which I had to rewrite as client/server programs.
This is now finished, only one problem left.
My CMS has a start program, where all the sites, which can be edited are listed.
The CMS opens a browser window and communicates with XMLHttpRequest.
After clicking on a domain, there should be executed the perl program server.pl with some parameters.
Each site has assigned a port number for the communication from the perl script with the browser.
I start the whole system in gnome-terminal with
perl server.pl
This starts the overview with all sites for edit in the browser on port = 10500.
I tried several combinations to accomplish the task to open a new edit session with one of the sites
the last test was the following Perl line:
exec ( "gnome-terminal", "-e", "$path::internet/cgi.pege.org/cgi-bin/server.pl task=WSC site=$site port=$port" );
This line
opens a new terminal window like intended,
opens the editor in a new browser window for the clicked site like intended,
but terminates the program, what is not wanted.
It ends with the terminal window showing the prompt
and a new terminal window showing the messages of the edit this site session like intended.
What is wrong, that the Perl program ends, when this line is executed?
which I had to rewrite as client/server programs.
This is now finished, only one problem left.
My CMS has a start program, where all the sites, which can be edited are listed.
The CMS opens a browser window and communicates with XMLHttpRequest.
After clicking on a domain, there should be executed the perl program server.pl with some parameters.
Each site has assigned a port number for the communication from the perl script with the browser.
I start the whole system in gnome-terminal with
perl server.pl
This starts the overview with all sites for edit in the browser on port = 10500.
I tried several combinations to accomplish the task to open a new edit session with one of the sites
the last test was the following Perl line:
exec ( "gnome-terminal", "-e", "$path::internet/cgi.pege.org/cgi-bin/server.pl task=WSC site=$site port=$port" );
This line
opens a new terminal window like intended,
opens the editor in a new browser window for the clicked site like intended,
but terminates the program, what is not wanted.
It ends with the terminal window showing the prompt
and a new terminal window showing the messages of the edit this site session like intended.
What is wrong, that the Perl program ends, when this line is executed?