Thread: start application

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    start application

    hi everyone.
    iis there any way to run the exe when the system starts.
    am using fedora core 4
    can u please show me the way in exact.
    thank you.

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    176

    Thumbs up

    ? you want to know what code to add to your program, so that it will execute at startup. Or you want to know how to tell fedora to start your app after startup.

    Code:
    #include <stdio.h>
    #include <slanted_startup.h>
    
    int main(void)
    {
           if (setup_exe_startup() == -1)
               printf("Unable to add application to startup\n");
           else printf("Your application has been successivly added to startup\n");
    
          return 0;
    }
    there yuo go

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    thank you

    r1.c:2:29: error: slanted_startup.h: No such file or directory

    an error showing like
    i would like to tell u my problem
    when i start my system the will automatically start
    so, that what i have to do.
    is my exe will kept in any folder( system's)

    i hope you can show me the way

    thank you

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    176
    google?
    fedora 4 forum?

    slanted_startup.h
    Code:
    #define setup_exe_startup() -1
    seems to only work sporatically though
    Last edited by sl4nted; 12-11-2006 at 11:51 PM.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > iis there any way to run the exe when the system starts.
    http://www.rootr.net/man/man/init/8

    It's also a pretty good way to mess up your system, so you'd better make sure your startup program is doing a pretty good job.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  2. cannot start a parameter declaration
    By Dark Nemesis in forum C++ Programming
    Replies: 6
    Last Post: 09-23-2005, 02:09 PM
  3. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  4. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 04:33 AM