Results 1 to 4 of 4

Thread: help needed .any linux guru there ?

  1. #1

    help needed .any linux guru there ?

    hi all, i am new to linux , my question is that i want to start a program when the linux boots , where do i issue the command to run this program , does it goes in one of the boot scripts in linux .
    thanks in advance.

  2. #2

    Re:help needed .any linux guru there ?

    There's no need to post the same question to multiple forums - people will see your post.

    What distro are you running?
    Are you trying to run something as the machine actually boots, or rather when you log in?

  3. #3

    Re:help needed .any linux guru there ?

    running embedded linux,
    need to start the program at boot , ( no need for any one to login)

  4. #4

    Re:help needed .any linux guru there ?

    I know know Embedded Linux myself, but most distros have should have a simliar setup. Look for the file rc.local, somehere under /etc most likely. Add the full path to what you're trying to run to the end of rc.local (make sure there's a blank line at the end of the file). If Embedded doesn't have an rc.local file, perhaps someone that knows that system better would be able to tell you the equivalent file.

    example tail rc.local:
    [spot@halb spot]$ tail /etc/rc.d/rc.local
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.

    touch /var/lock/subsys/local

    /usr/bin/time above is a script I wrote to connect to a remote NTP server and sync my machine's clock, it runs every time the machine is booted via being added to the rc.local file.
    You won't see all the fancy schmancy deals like the true init script, with the [OK] or [FAIL], but it will run. If you'd prefer to see it like other services, you're going to need to do some pretty deep reading and learn how to set it up via the init scripts.

Similar Threads

  1. Discussion with all linux champions and guru on How fsck works???
    By vap16oct1984 in forum Linux - General Topics
    Replies: 5
    Last Post: 10-29-2009, 06:37 PM
  2. Linux Assistance Needed Urgently
    By shy001 in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 05-10-2008, 07:27 PM
  3. Linux Software RAID help needed
    By BigRizz in forum Linux - General Topics
    Replies: 5
    Last Post: 01-26-2008, 04:59 AM
  4. Linux FTP server Advice Needed
    By z969307 in forum Linux - General Topics
    Replies: 3
    Last Post: 03-15-2006, 03:44 AM
  5. Need Samba Guru please
    By datamike in forum Linux - General Topics
    Replies: 1
    Last Post: 04-14-2004, 02:14 AM


Posting Permissions

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