Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start java class as deamon 1

Status
Not open for further replies.

tomecki24

Programmer
Jun 13, 2001
52
DE
Hello,

I've got to start a java class on startup Solaris. It works fine but it's java class, so it "locks" the display and any other script cannot be run after this one. I cannot start it as last one, because I need some other activities after that one.
What could I do? Maybe convert java class into exe file or something? How to do that on Solaris? Any ideas?

Thanks
Tomasz
 
Hello,

I found a solution:
Lets say, run.sh is a script containing java class.
In my script on startup I'm using following command:

./run.sh 1>/dev/null 2>/dev/null &

Is this good solution or exist better one?

Thanks
Tomasz
 
hi,

and another question.
Can I do the same (1>/dev/null) with next 3 java classes?

Thanks
Tomasz
 
I don't know of any reason why you shouldn't. /dev/null is just a 'sink' for stuff that's not required by anything else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top