Re: run a perl script during system boot



On 2006-02-27, Nico Kadel-Garcia wrote:
Grant wrote:
On Mon, 27 Feb 2006 05:10:42 -0500, "Nico Kadel-Garcia"
<nkadel@xxxxxxxxxxx> wrote:

chinzi wrote:
hey ..
how do i run a perl script at system boot???

Usually by creating an init script in /etc/rc.d/init.d or wherever
your system puts its init scripts, and running it at certain levels
by default.

Please, not perl boot script ... why? If it is post-boot try
rc.local, or whatever, called after all boot scripts complete.

The shell script can call the perl script, and bring it into the chkconfig
managed setups. There's a big problem with editing rc.local: it makes it
tougher to turn on and off the boot behavior,

What could be easier than adding or removing an octothorpe ($) at
the beginning of a line in /etc/rc.local?

and more difficult to port the software to other systems.

Why? Other systems may not use the /etc/rc? boot method.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages

  • [NEWS] IBM Informix Web DataBlade Local Root by Design
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... that ease development of "intelligent", interactive, Web-enabled database ... person who has access to change the Perl script. ...
    (Securiteam)
  • my perl script for ripping mp3s...aka MP3scRIPt
    ... This is a Perl script to convert audio cd tracks to mp3s. ... Possibly root privs to access the cdrom device ... - this is mainly a problem on 'variety cds', mp3 files suffering from this ill ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Perl script to mimic uniq
    ... mdfoster44@netscape.net spits TOFU in my face: ... > # Perl script to find most common CS ... > So I'm back to my original script which looks like this. ... > identify a sequence as unique. ...
    (comp.lang.perl)
  • Re: Slow Performance When Using DBI, otherwise Not
    ... If I run the same perl script on the database server itself it runs ... check versions of DBI and DBD (I greped for version on every module under ...
    (perl.dbi.users)
  • Re: Recovering from compromised system
    ... > perl script I have ever seen, and I would hate even more to learn a new ... > language to understand one script. ... That command is normal for a lot of substring functions. ... Hey, put a few lines in list_2_ck, run the perl script, cat j.ksh. ...
    (comp.os.linux.security)