Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inittab 2

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
0
0
IL
Hi,
I'd like to run my script from /etc/inittab
I add the following line to it:
infx:3456:eek:nce:/tmp/for_test >/dev/console 2>&1

The script has -rwxr-x-r-x permission

The script content:
-------------------------------------------
#!/bin/ksh

echo "running for_test script"
touch /tmp/for_test.log
-------------------------------------------

But after reboot I don't see /tmp/for_test.log file created
Also:
/var/adm/ras: alog -f console -o
doesn't show me any relevant message.

What is the problem?

Thanks in advance,
Vadim
 
Perhaps an inittab line somewhere before this specific line has mode "wait" and isn't finishing so as to hand over control to subsequent inittab lines?

It would help if you show the complete inittab contents.

Also, [tt]who -a[/tt] might show some clues.


HTH,

p5wizard
 
Hi,

I'd try activating the script for ALL runlevels, just in case ...

Like this:

infx:0123456789:eek:nce:/tmp/for_test >/dev/console 2>&1


Regards
Thomas
 
Thanks for your help!
The problem was that AIX default run level is 2
(and not 3 as in SunOS and HP-UX)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top