Ask the Expert

Can a Perl script be started at system boot?

Can a Perl script be started at system boot (via the typical /sbin/rc3.d soft link, etc.)? This is Compaq UNIX. Or, does this require a log-in and env set-up to use the Perl bin? What about when dealing with a custom vendor shell script that starts a GUI app? I want it to auto-start at system re-boot. Normally, one would:

  1. boot
  2. log-in a UNIX account
  3. cd to dir containing script to launch app
  4. run script to start app

Requires Free Membership to View

  1. You can certainly start this from inittab. Here is the format you should follow:

    Put in respawn if you want to make sure it comes back to life if it dies.

    Good luck!

    This was first published in July 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: