Solved

AIX 4.3: How to run script at boot time

Posted on 2003-11-14
7
1,771 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
Comment Utility
add script to /etc/inittab files.
check man pages for lsitab, chitab, mkitab, rmitab.
0
 
LVL 24

Expert Comment

by:shivsa
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 61

Expert Comment

by:gheist
Comment Utility
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
Comment Utility
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
Comment Utility
need more help.....
0
 
LVL 2

Author Comment

by:nevahj
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 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

9 Experts available now in Live!

Get 1:1 Help Now