Results 1 to 2 of 2

Thread: running script automatically on boot up

  1. #1

    running script automatically on boot up

    Im trying to write a script/program to aid in the installation process for several different linux and unix install processes and i need to know how to create a script that will be run when the system reboots. Is there simply a directory that i can copy the script to so that it will be ran when the system reboots? If so, do you know what the directory is for any of the following (i dont know if it would be different):
    Caldera eServer 2.3 and 3.1
    RedHat Linux 6.2, 7.0, 7.1, 7.2, and 7.3 (beta)
    SuSe Linux 7.0, 7.1, 7.2
    TurboLinux 6.0.5 and 6.5
    SCO UnixWare 7.1.1
    SCO Openserver 5.0.6
    Caldera OpenUnix 8.0
    Basically on a few of these operating system installs there is a lenghty amount of installing that has to be done after the actual install. Im writing a program that prompts the user for whichever operating system is installed and then will automatically finish installing drivers, patches, test utilities, etc. I work for IBM testing hard drives and OS configurations with the different code levels of the drives.
    There are a few times during most installs when the system needs to be rebooted and at that point i need the script (or another script) to resume upon rebooting of the system.
    Thanks for any help you can provide!!
    --Morphman, ever-curious linux/unix "junior"

  2. #2
    redhead's Avatar
    Join Date
    Jun 2001
    Copenhagen, Denmark

    Re: running script automatically on boot up

    I can't say for all those systems, since I've only worked with a few..
    On most of the systems theres a /etc/rc.d/rc.local file which will be run as the last bit befor its started, if you were to add a line like: 'exec /your/script' to that, then your script will be run on boot..

Similar Threads

  1. Running cusom firewall script -iptables -RHEL 4
    By in forum Programming
    Replies: 0
    Last Post: 06-12-2008, 01:09 PM
  2. automatically log on to Windows XP
    By regix in forum Windows - General Topics
    Replies: 10
    Last Post: 07-15-2005, 07:31 PM
  3. running remote command, then leave it running
    By Blaqb0x in forum Linux - General Topics
    Replies: 1
    Last Post: 10-03-2003, 10:36 PM
  4. linux/unix boot script question
    By morphman in forum Programming
    Replies: 4
    Last Post: 05-31-2002, 12:50 PM
  5. Starting X automatically...
    By irox in forum Linux - Software, Applications & Programming
    Replies: 11
    Last Post: 01-08-2002, 12:08 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts