AIX 4.3: How to run script at boot time

How do I run a script at boot time on an AIX system?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

add script to /etc/inittab files.
check man pages for lsitab, chitab, mkitab, rmitab.
You may want to put your commands in one of the files in the /etc/rc.d directory, such as /etc/rc.d/rc.local

You can add a line in /etc/rc.d/rc.local like this :

   su - www -c /path/to/script_File

Just change /path/to/script_File to the real path/file name.
Save your script in somewhere on your system and edit the /etc/inittab file, to call the script.

You can have look at the following page for detail instructions:

this solution is same as first one but have example scripts in the link.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

wrap your script this way:

echo Starting script ....
echo ... script Done.
exit 0

some AIX tools expect zero error code from scripts, so better let it boot till it allows login, rather than get running to console whenever script failed
In AIX i use to place the scripts in /etc/inittab , like this


  The script will be executed once at boot time.

see man inittab

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
need more help.....
nevahjAuthor Commented:
Thanks everyone, especially shivsa, for the help. I apologize for not replying sooner.

Shivsa, I appreciate your quick response but, I was looking for the non-technical answer that bira provided.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.