How can I run a command or commands at system

How can I run a command or commands at system shutdown?


"Stock" AIX 4.1.x doesn't have any obvious place to add commands to
the shutdown sequence. You can 1) modify /etc/shutdown (it's a shell
script); 2) add your commands to /etc/netware.clean (shutdown invokes
this program if it exists) or 3) install APAR IX65326 ("ADD
/ETC/RC.SHUTDOWN TO SHUTDOWN SCRIPT IN AIX4.1.5) which adds a
user-defined /etc/rc.shutdown script to the shutdown sequence. AIX
4.2 and above already has a similar feature.



Home FAQ