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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on How do you execute a perl program at boot time?

Replies are listed 'Best First'.
Re: How do you execute a perl program at boot time?
by suaveant (Parson) on Jul 26, 2001 at 22:33 UTC
    If it is a linux system, you can put it in the startup scripts... RedHat has /etc/rc.d/rc.local for instance... but it really does depend on the operating system and whether you are root (in unixes)...

                    - Ant

Re: How do you execute a perl program at boot time?
by bikeNomad (Priest) on Jul 26, 2001 at 21:55 UTC
    This isn't a Perl question, and in any event depends on your operating system.

    update: if you're using Windoze, look at the "Scheduled Tasks" support. This will allow you to run something at startup or at login time.

      Depends on what you all "boot time" in Windows. Windows 9x still runs the CONFIG.SYS and AUTOEXEC.BAT in DOS mode before starting Windows. A DOS version of Perl could run scripts in AUTOEXEC.

      In Windows NT, there's the startup blue screen. There might be some special hacks (possibly with specially compiled versions of Perl... I've never looked into writing apps that run during that time) to run Perl. Or it might not be possible.

      There's also the HKLM\Software\Windows\CurrentVersion\Run registry keys to run at startup, and then there's of course the startup folder. As well as login scripts for a network.

      Pick your poison...