Why don't you rap a shell or a perl script around it. some thing like..


test.pl
=============================
#!????/perl  #path to perl..

print 'java test &';
=============================

try it out. It might work.

Nabil A. Malik
email:  [EMAIL PROTECTED]
        [EMAIL PROTECTED]
URL:<http://www.jlab.org/~nabil/>

On Wed, 13 Sep 2000, Purav wrote:

> This question is to all the Java Gurus.
>
> How do i run a  java class as a background process.
> I mean when i type "java test", the control should return to the dos or
> Linux prompt with the program running in background
> I know In linux , i can acheive this by putting an & at the end.
>
> But how do you acheive this throught code
>
> I have tried various things like calling a thread from the Main class and
> then write system.exit. but it doesnot work
>
> Any body knows how this can be acheived
>
>
> Purav
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to