Re: Running a program in the background

1999-12-29 Thread Ernst de Haan
Hi Marcus, You can do the following (with bash): java packageName.className 2>&1 > fileName And then do a ps ...|awk ...|grep ...|wc -l after a sleep with a grep perhaps? Or you can have your program create some kind of lock file. In the latter case you first delete the lock file, then

RE: Running a program in the background

1999-12-29 Thread Edson Carlos Ericksson Richter
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