A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Linux / UNIX
Joined: Oct 24, 2005
Oct 25, 2005 04:33:00
Howcan I write an script which has start/stop/status option including a program for example " Top" where I start as background process.
I tried this
It's work but when I entered:
I got this error:
./test: line 3: top & : command not found
Overall my main question is how can I write script . I've an script for weblogic as " startWebLogic.sh" and I copied the script to /etc/init.d
and /etc/rc3.d and made an symbolic link like:
code:ln-s /opt/bea/domains/admin/startWebLogic.sh /etc/rc3.d/S90startWeblogic
but the problem is that I don't know how can I stop the program or restart it again.command kill it's not suitable to do that.
Joined: Jun 02, 2003
Oct 25, 2005 16:55:00
It depends on how to stop the things, your script is starting.
Perhaps you find a script /etc/init.d/skeleton, which is a skeleton for building start-stop-restart-... - Scripts.
But I guess you're not the first one, who needs a start-stop-script for Weblogic, so there should be a usable script to be found in the net.
I agree. Here's the link:
subject: Top initscript
how to execute thread on linux web server?
How do I set Linux to start Apache at boot?
Shared Library Path
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014