Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Lightbulb [SOLVED] script to run application at startup?? ( Compiled in gcc )

    Hi! I'm newbie in linux ,but I have developed many applications in .Net
    Now, I wrote a new program in Linux , gcc complier..
    I complied the file and I need to put it in startup. But I read some documents ,these say that I should write a shell script then put it into etc directory.
    How do I write a script to start it on startup ?

    Thanks A Lot...

    I changed the file /etc/rc.d/rc.local , then it worked !!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    As you found, /etc/rc.d/rc.local is intended to allow system-specific applications to be run at startup, after all the standard service and server startup scripts have run. It is a script file intended to be modified by adding your specific application commands as needed.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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