Tomcat service-- command line restart

2002-03-27 Thread Stephen Clarke

Hi,
Does any kind person happen to have on the tip of his tongue the command
line to restart Tomcat as a service in win2k?
Many thanks.
--
Best,
Stephen Clarke


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat service-- command line restart

2002-03-27 Thread Stephen Clarke

Hi John and Christopher,
Thanks both. That worked very nicely.
--
Best,
Stephen

- Original Message -
From: John Roth [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 2:11 PM
Subject: RE: Tomcat service-- command line restart


 You can do:
 net stop Tomcat
 net start Tomcat

 - assuming, of course that Tomcat is your service name.  I have multiple
 instances on each server, so my names vary by which instance.


 -Original Message-
 From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 27, 2002 8:08 AM
 To: tomcat
 Subject: Tomcat service-- command line restart


 Hi,
 Does any kind person happen to have on the tip of his tongue the command
 line to restart Tomcat as a service in win2k?
 Many thanks.
 --



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mm.mysql driver

2002-01-28 Thread Stephen Clarke

Can anyone help me set up the MySQL drivers for Java. I have it working in
stand alone programs. But in Tomcat  I get error message

org.gjt.mm.mysql.Driver

which is supposed to be the name of the driver.

Grateful for any assistance. Thanks.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Invoking a process on the server from a servlet

2002-01-22 Thread Stephen Clarke

I have the following code in my servlet, where 'out' is the
HttpServletResponse object.

  Runtime t = Runtime.getRuntime();

  try {

   Process proc = t.exec( c:\\TaskInfo.exe );

   out.write( invoked  );

  } catch ( java.io.IOException ioe ) {

   out.write( ioe.toString() );

  }

What I'm getting is invoked in the browser window, but nothing visibly
happens on my local machine( ie. server). I was hoping TaskInfo would start
up. What I really want to do is open a file in notepad to tell me a visitor
has just arrived. Am I barking up the wrong tree altogether. Should I
generate an event and listen for it in another app running as a listener in
the background, or is there just no way of invoking a process on localhost
from a servlet.

Thanks.

If this is the wrong place to be asking these questions, please let me know.

--
cf



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Invoking a process on the server from a servlet

2002-01-22 Thread Stephen Clarke

- Original Message -
From: Wagoner, Mark [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 22, 2002 3:45 PM
Subject: RE: Invoking a process on the server from a servlet


 The problem is due to NT (or 2000) not allowing the Tomcat service to
 interact with the desktop.  If you bring up Task Manager, you will
probably
 see your invoked process running, but it can't create window.  In fact,
the
 only way you will now be able to get rid of it will be to kill it in Task
 Manager.

 I don't know of any way around this.

OK. Can you tell me for sure that trying to generate an event and 'hear' it
in another infinitely looping application won't work?

Personally, I've never generated my own events before so I am guessing
wildly.

Thanks,

sc


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Invoking a process on the server from a servlet

2002-01-22 Thread Stephen Clarke

OK. Thanks to all. The thread got discombobulated in my reader.

Anyway, I think I'll just write to a file and check it manually, or with a
perl doo dad.

TCP is a whole nother project. {:=o

Thanks again to all who replied.

--
Best,
sc


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]