Operating System - HP-UX
1751688 Members
5530 Online
108781 Solutions
New Discussion юеВ

Re: where is file located like autoexec.bat

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

where is file located like autoexec.bat

Hi

In Redhat linux, there is a file "/etc/rc.d/rc.local". all the data (commands or what ever we have put in that file) in this file will be executed like autoexec.bat in windows.

Like what is the file in HP-UX?

Like what is the file in SUSE linux?

7 REPLIES 7
Dennis Handly
Acclaimed Contributor
Solution

Re: where is file located like autoexec.bat

There are 100s of files in the rc directories. You can add your own if you wish.
http://docs.hp.com/en/B2355-60130/rc.1M.html
Jeff Schussele
Honored Contributor

Re: where is file located like autoexec.bat

In HP-UX the files are located in /sbin/init.d.
These files will look to config files in /etc/rc.config.d to see whether the startups are actually to be executed.
Also be advised that under /sbin there are several dirs named rcX.d where X=2,3,4,etc where X means the run-level in which they'll be executed.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Frank de Vries
Respected Contributor

Re: where is file located like autoexec.bat

Hpux uses dir structure like this

/sbin/init.d
/sbin/rcx.d
where x is your run level
Beware: Runlevels mean slightly different then redhat

Suse like redhat


Look before you leap
T G Manikandan
Honored Contributor

Re: where is file located like autoexec.bat

There is no rc.local

1) Create a script in /sbin/init.d
2) Link it to a runlevel directory ( rc1.2 or rc2.d or rc3.d) with an S (startup) in the begining.
You can also link it to a K(script) with the runlevel directories.
senthil_kumar_1
Super Advisor

Re: where is file located like autoexec.bat

Hi

how to create a file like this.

pls explain me in step by step.
T G Manikandan
Honored Contributor

Re: where is file located like autoexec.bat

Please check this document

http://docs.hp.com/en/934/startup.pdf

Please also check the template at

/sbin/init.d/template
Bijeesh
Respected Contributor

Re: where is file located like autoexec.bat

Hi
Pls see this link


javascript:openExternal('http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=480208')