Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 23:16:00 -0700 (PDT)
From:      Vijay Patel <talkwithpatel@yahoo.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   How to keep java code running after logout
Message-ID:  <20020730061600.95733.qmail@web12201.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi friends,
	I have installed FreeBSD 4.5 on my machine. I am also
having 2 other machines running on linux.
	We have developed a code in java which we need to run
in background for 24 hrs. In linux we use...
	java Code1 &
	
	command to run our code in background. After starting
this command we just logout from that terminal window.
We have seen that on linux machine our code works fine
in background.

	When i have tested same code on our FreeBSD server,
unfortunately it gets killed, without writting any
error message in log file. We tried to search on all
help pages available about how to run our application
in background - on console window. We did not get any
help about this item.

	My observations are... when i start code on FreeBSD,
then i issue ps command ...

bash-2.05a$ ps
  PID  TT  STAT      TIME COMMAND
 1006  p0  Ss     0:00.04 -bash (bash)
 1087  p0  S      0:00.20
/usr/local/jdk1.3.1/bin/i386/green_threads/java Code1
 1103  p0  R+     0:00.00 ps


	After starting my code, i logout & relogin to check
whether my code is working in background or not....

bash-2.05a$ ps
  PID  TT  STAT      TIME COMMAND
 1087  p0- I      0:00.20
/usr/local/jdk1.3.1/bin/i386/green_threads/java Code1
 1105  p0  Ss     0:00.01 -bash (bash)
 1106  p0  R+     0:00.00 ps

	It is showing that code is working right now. But
after 2-3 hours code automatically gets killed. I am
having good provision for keeping all error log iff my
code exists with an error. But here i am sure that it
is getting killed - so i am not getting any error log.

	Can any friend help in how to keep my code working
without a terminal window. - I am starting my code
using ssh terminal from another machine. It is not
possible for me to go to front of server & start code
from server itself. Is there any idea how all deamon
processes works - Tomcat, Mysqld etc...

	Thanks in advance.

PS : My application has nothing to do like hacking or
cracking - It is designed to run for 24 *7 Hrs, But i
am sure that here --- Hacker-guys must be having
solution of this problem - as they also do something
like this. :-)


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730061600.95733.qmail>