HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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')