Running a Java Program
| From: | Prathaban Mookiah | Date: | Thu, 26 Oct 2006 23:48:44 +0000 |
| Subject: | Running a Java Program | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-243711@lists.php.net to get a copy of this message | ||
Hello List,
I have a situation where, when the user logs into the system (Apache 2/PHP
5.1/Win XP) the php script should activate a Java program to run in the
background. This program will keep running in the background while everytime
the user requests something, the subsequent php scripts communicates with
this Java program on a preassigned port. (This is for controlling a robot I
descibed in on of my earlier mails)
My questions are:
1. How do I make the Java program to keep running even after the PHP script
terminates. In Linux I would have easily done using '&' - how about windows?
2. What is the safest way to do it?
Thanks in advance.
Prathap
P.S - Richard & Tedd - I appreciate your comments on my previous issue.