- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- run script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 06:14 PM
02-15-2005 06:14 PM
I have an application that will start with script startWeblogic.sh.I want this script automatically start when system boots to its multi user level.
I have placed this sript to /sbin/rc3.d.is it true??
for information,this script need username and password when run.
thanks,
-piyut-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 06:25 PM
02-15-2005 06:25 PM
SolutionYou need to put the script in /sbin/init.d and then start it using the start script whose name is "S
Similarly stop script will be in /sbin/rc0.d and it's name will like "K
If you have to provide Username/Password then you need to define varible with this and pass this variable to the calling script. Becuase it is not a good idea to make boot procedure interactive for your script.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 06:27 PM
02-15-2005 06:27 PM
Re: run script
This script should be placed in /sbin/init.d directory and should have symbolic link to /sbin/rc3.d directory. In rc3.d script name should start with S .
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 06:45 PM
02-15-2005 06:45 PM
Re: run script
please use something like
/usr/bin/su -
where DOMAIN_HOME will point to your domain directory where the weblogic startup script resides
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 12:35 PM
02-16-2005 12:35 PM
Re: run script
there are informations in my server:
# ls /sbin/rc3.d/
S100nfs.server S200tps.rc S825apache S941opcagt S990dtlogin.rc
now, i just put script "startWeblogicstart.sh" to /sbin/init.d. to make link. I run command
#ln -s /sbin/init.d/startWeblogic.sh /sbin/rc3.d/S900startWeblogic.sh
is it true ???
but, this script need provide USERNAME and PASSWORD.hostname for this server that will run this script is hqhpux80 and username that will be provide is weblogic and password weblogic.
How can make this script so we don't need to provide username and password??
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 03:53 PM
02-16-2005 03:53 PM
Re: run script
It is correct. Are you using start, stop kind of startup scripts. Look into other scripts and make your new script as same to that.
>>>
but, this script need provide USERNAME and PASSWORD.hostname for this server that will run this script is hqhpux80 and username that will be provide is weblogic and password weblogic.
>>>
what kind of authentication and authorization. Is it your own one then it is easy. Else is it acceptable to give batch mode run.? If you can automate script without asking any question then that will be capable to put in boot-up scripts.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 04:16 PM
02-16-2005 04:16 PM
Re: run script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:56 PM
02-16-2005 10:56 PM
Re: run script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2005 02:38 PM
02-17-2005 02:38 PM
Re: run script
i have tried to start manually as root but still need provide username and password.how come ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2005 09:21 PM
02-17-2005 09:21 PM
Re: run script
All I can think of is that the application you're starting with your script is asking for username & password. What happens when you try to start the application manually (without the script) as the owner of the application?
If it doesn't ask for the username & password when you do that, could you post the startup script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2005 09:28 PM
02-17-2005 09:28 PM
Re: run script
I think there will be a Admin user for the particulation application which you are starting, as i understand it is weblogic. So if you login as that user . it will not ask you for authentication again
Thanks
Sreejith M