Discussion:
ms-dos as service
(too old to reply)
c***@gmail.com
2007-04-24 03:44:57 UTC
Permalink
Hi,


I was wondering if it is possible to run a command from a dos window
as a service so that the dos window will not stay open.

Thanks,


Carl
Jim Langston
2007-04-24 04:21:19 UTC
Permalink
Post by c***@gmail.com
Hi,
I was wondering if it is possible to run a command from a dos window
as a service so that the dos window will not stay open.
Yes. Subversion is a console based .exe that can be run as a service so
there is no console window. Services have specific things they have to do
on startup/ending, so for subversion a small program was written,
subservice, that simply registered subversion as a service and ran it. The
code was generic so any .exe. could be run that way.
c***@gmail.com
2007-04-24 23:04:06 UTC
Permalink
Well, I downloaded and installed the program but I am not sure how to
use it. I am trying to use it with java. Basically when I enter the
javac command from the dos prompt, I would like it to run as a service
in the background so that I don't have to see the window no longer.
Is this a simple task or do I have to be to an expert with Subversion
to understand it?

Thanks,

Carl
Post by Jim Langston
Post by c***@gmail.com
Hi,
I was wondering if it is possible to run a command from a dos window
as a service so that the dos window will not stay open.
Yes. Subversion is a console based .exe that can be run as a service so
there is no console window. Services have specific things they have to do
on startup/ending, so for subversion a small program was written,
subservice, that simply registered subversion as a service and ran it. The
code was generic so any .exe. could be run that way.
Jim Langston
2007-04-25 02:38:40 UTC
Permalink
My bad. It's actually called SVNService. It comes as a C program that can
be modified.

Here is the project home page:
http://svnservice.tigris.org/

The install comes with source code you would need ot modify for your own
application. I have an older version and it came as C code which I compiled
easily in VC++ .net 2003. Not sure what it's using nowadays. It is
opensource.
Post by c***@gmail.com
Well, I downloaded and installed the program but I am not sure how to
use it. I am trying to use it with java. Basically when I enter the
javac command from the dos prompt, I would like it to run as a service
in the background so that I don't have to see the window no longer.
Is this a simple task or do I have to be to an expert with Subversion
to understand it?
Thanks,
Carl
Post by Jim Langston
Post by c***@gmail.com
Hi,
I was wondering if it is possible to run a command from a dos window
as a service so that the dos window will not stay open.
Yes. Subversion is a console based .exe that can be run as a service so
there is no console window. Services have specific things they have to do
on startup/ending, so for subversion a small program was written,
subservice, that simply registered subversion as a service and ran it.
The
code was generic so any .exe. could be run that way.
c***@gmail.com
2007-04-30 00:20:13 UTC
Permalink
Sorry,

I am still having a hard time understanding what SubVersion does. Do
you add the code from subversion to your so that it will run as a
service? Also, I should ave mentioned this earlier, can it be used
with java to run a java program as a service? That is what I need it
for.

Thanks again,

Carl
Post by Jim Langston
My bad. It's actually called SVNService. It comes as a C program that can
be modified.
Here is the project home page:http://svnservice.tigris.org/
The install comes with source code you would need ot modify for your own
application. I have an older version and it came as C code which I compiled
easily in VC++ .net 2003. Not sure what it's using nowadays. It is
opensource.
Post by c***@gmail.com
Well, I downloaded and installed the program but I am not sure how to
use it. I am trying to use it with java. Basically when I enter the
javac command from the dos prompt, I would like it to run as a service
in the background so that I don't have to see the window no longer.
Is this a simple task or do I have to be to an expert with Subversion
to understand it?
Thanks,
Carl
Post by Jim Langston
Post by c***@gmail.com
Hi,
I was wondering if it is possible to run a command from a dos window
as a service so that the dos window will not stay open.
Yes. Subversion is a console based .exe that can be run as a service so
there is no console window. Services have specific things they have to do
on startup/ending, so for subversion a small program was written,
subservice, that simply registered subversion as a service and ran it.
The
code was generic so any .exe. could be run that way.
Loading...