No, you can't detect when the program is running in background (thinking in a generic 
environment).
But you can use a Log application to redirect yor System.out to a network connection.
And, you can use the syslogd client existing in Giant Java Tree...

I've seen some sample in JavaTutorial, but I don't remember where...

[]s

Edson Richter


----------
From:   [EMAIL PROTECTED]
Sent:   quarta-feira, 29 de dezembro de 1999 12:19
To:     [EMAIL PROTECTED]
Subject:        Running a program in the background

Dear List,
I have written a little program that I would like to run in the background.

My linux box is Linux 6.1.
JDK 1.1.7b from blackdown.

I know to put 2>&1 & at the end of the starting line, but when I do a 
System.out.println it prints to the window as expected. Can I detect, when
the java app is running whether it has been started in the background? So I
can skip the writing.

Cheers,
Marcus

------------------------
Marcus Monaghan
BOOT Computers Limited
Tel : 01270 611299
Fax : 01270 611302 
------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to