Solved

AIX 4.3: How to run script at boot time

Posted on 2003-11-14
7
1,774 Views
Last Modified: 2010-04-21
How do I run a script at boot time on an AIX system?

Thanks,
Charles
0
Comment
Question by:nevahj
7 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9751027
add script to /etc/inittab files.
check man pages for lsitab, chitab, mkitab, rmitab.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9751500
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.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9751516
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:

http://www.cs.nott.ac.uk/TSG/manuals/databases/oracle/standard/a90346/post-ins.htm#1033413

this solution is same as first one but have example scripts in the link.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 61

Expert Comment

by:gheist
ID: 9759510
wrap your script this way:

#!/bin/ksh
echo Starting script ....
/Your/code
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
0
 
LVL 6

Accepted Solution

by:
bira earned 50 total points
ID: 9763387
In AIX i use to place the scripts in /etc/inittab , like this

tittle:2:once:/yourdir/yourscript.ksh

  The script will be executed once at boot time.

see man inittab
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9801007
need more help.....
0
 
LVL 2

Author Comment

by:nevahj
ID: 10071395
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.

Thanks,
Charles
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now