- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- execute at startup
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
Discussions
Discussions
Forums
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
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
тАО01-13-2010 02:37 AM
тАО01-13-2010 02:37 AM
execute at startup
I need your help.
after restarting my server is completed,
I have a batch file (script file) and I want it to be executed immediately after restarting.
But not whenever the system restarted ,the batch file executed.
I want it to execute in specific time only.
how can I do that?
tru64 Unix operating system type.
bye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 07:00 AM
тАО01-13-2010 07:00 AM
Re: execute at startup
> after restarting.
> [...] But not whenever the system restarted
> [...]
> how can I do that?
Do _what_?
Decide what you want, then ask again?
man cron
man rc0
man rc2
man rc3
man rc4
> tru64 Unix operating system type.
sizer -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 11:30 AM
тАО01-13-2010 11:30 AM
Re: execute at startup
the operating system I am using is tru64 Unix.
I have a batch file (script file)containing some commands and I want them to run at startup .
how can I do that?
bye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 02:52 PM
тАО01-13-2010 02:52 PM
Re: execute at startup
Uh, learn to read?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 08:14 PM
тАО01-13-2010 08:14 PM
Re: execute at startup
If you want to do it in some specific runlevel put in rcX, where X is run level.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 12:22 AM
тАО01-14-2010 12:22 AM
Re: execute at startup
Steven allready led you (not too clearly) to the manual (man pages, like helpfiles) for rc0 rc2 rc3. => "man rc0" (etc)
unix has a several directories for scripts that are executed during startup.
There are different startup stages like single user mode (eg maintenance mode, no user activity) and multi-user mode , therefore there are multiple such directories.
/sbin/rc0.d
/sbin/rc2.d and so on.
the highest rc
scripts needed to execute at startup start with a capital "S" followed by a number.
the system executes all S
so you can add a startup-script like
/sbin/rc3.d/S999-mystartupscript
(replace 999 with higher then existing highest number)
you yourself must see to it that the script is executed at a specific time (and not multiply concurrent at the same time).
You can use a variant of "at