s_gaurav1091 has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, There is a command in AIX which is used to add an entry into /etc/inittab file.I want to know that similarly is there any command in linux also????

Replies are listed 'Best First'.
Re: mkitab command
by blazar (Canon) on Oct 11, 2005 at 09:37 UTC
    Please do not take this as a personal attack, but am I missing something or... how the hell does this have to do with Perl?!?
Re: mkitab command
by tirwhan (Abbot) on Oct 11, 2005 at 09:33 UTC

    I can't see how this would be perl-related, but to answer your question

    vi /etc/inittab

    followed by

    telinit q

    does it for me.

Re: mkitab command
by Moron (Curate) on Oct 11, 2005 at 09:42 UTC
    I am not aware of any special facilities of this type, but you may need to be aware that inittab is only one way to skin the cat and it may not be as good (or easy and safe to use) as another. This article, for example, expunges the benefits of /service over (i.a.) inittab.

    Update: to clarify; my intention in posting the link is merely to reveal that there are more ways to do this than to recommend one way over another.

    -M

    Free your mind

      Moron, this entire thread seems entirely off-topic for PM, so I don't want to expand it unnecessarily. But I do have to question the wisdom of recommending an entirely non-standard (and somewhat controversial) init system over a system which comes as standard with every Linux distro out there. Especially since the OP does not seem very proficient in Linux (otherwise he probably wouldn't have asked this question, no offense to the OP intended).

      Don't get me wrong, I'm not trying to start an "inittab is better than daemontools" flame-war here, but I think your recommendation is inappropriate.

        And the reverse was not my intention either. It can hardly hurt for the OP to be aware that there are more ways than inittab to do the job. That's what the link did in this respect - it provides a list of alternatives which the Op could look into further. If you insist that there is a single standard init system with linux then maybe you should study the alternatives (and their precise purposes) in more detail yourself rather than assume, like too many people here, that the way you know best for doing something just must be the only right way.

        -M

        Free your mind