Application auto run

I have write a application in C language,and I want it could auto run with os boot. I write a start script, placed it in the directory /etc/init.d. There also I created a hard link in the directory /etc/rc3.d, and the link file named "S99XXXX", but the app can not auto run, what is the wrong with?
Thank you!

I think that having the startup script (or link) for your app in the /etc/rc3.d is a good idea. This will let you boot to run level 2, have all your network services running, but keep your app down. Makes things easier for testing/patching/whatever.
To answer your question though, I'd try to run the script by hand. Check various for permissions (read and execute) and ensure that you have any needed environment variables set at the beginning of the script. These variables have bit me pleanty of times.
As you probably know, your script will get run with a "start" option. Hopefully, your script isn't expecting a different option.
My 2 cents.
Good luck!

Similar Messages

  • Auto run application

    I want to develop a application that auto run on the server everyday.
    The application should be satisfy the following requirement:
    1. auto run on scheduled time
    2. immediately run after the server restart
    I suppose to use Servlet. plse give me any idea.
    sample code or example is helpful, Thank a lot !

    hi,
    if you use the solution with the crontab your java program is monitored. if the program crashes the cron starts it again. put you have to write a shellscript to start the javaprogram and to check out the program already runs.
    here a little script to start
    #=====================================
    CLASSPATH=**your CLASSPATH**
    JAVA_HOME=**your JAVA_HOME**
    PATH=$PATH:$JAVA_HOME/bin
    **your environment**
    export CLASSPATH JAVA_HOME PATH **your environment**
    #is the program running? (not the best solution but it should work ;-))
    a=`ps -ef | grep **your programm**`
    if [ "$a" == "" ]
    then
    nohup java **your program** 1>**your logfile** 2>&1
    fi
    #=====================================
    the crontab entry:
    */10 * * * * your program
    the 5 starts mean:
    minute,hour, day,month,day of week -> look at the man page (man 5 crontab)
    to edit the crontab use the command crontab -e under the useraccount where the program should run.
    to write a startscript (rc-Script) you can look at the skeleton-file. normaly it is in /etc/rc.d. name skeleton.
    copy that file and edit it. after that link the file to the runlevel-directory.
    hope it helps
    carsten

  • Autologin as user, auto run application as admin

    Hello, I am just trying to figure our if there is a solution for my problem.  I do not want to give the user full admin rights.
    Every time when Windows Server 2012 reboots, I need a user to login automatically and one of the applications should run.
    I am able to login after server reboots, the problem is with application.  It has to run with full admin rights.  If I try to configure to always run it as administrator, it asks for the admin's password. It should run automatically, so I cannot
    enter the password after reboot.
    Any ideas? Or should I give the user full admin rights?  I do not want to do this.
    Thank you.
    Thank you. Eric.

    Hi,
    Based on my experience, there is no build-in way to allow a standard user to run as Admin. For more detailed information, please refer to the similar
    thread below:
    Auto run as admin in non admin accounts
    http://social.technet.microsoft.com/Forums/en-US/59f91c21-0d1c-47e2-ad6f-1272000fc5ee/auto-run-as-admin-in-non-admin-accounts?forum=winserversecurity
    In addition,
    you should only allow an application that you trust to run as administrator because the application will have full access to your computer.
    If you don’t want to
    configure an application to always run as an administrator, you can right-click the application’s shortcut
    and make change in the Compatibility tab of the Properties dialog box.
    Best regards,
    Susie

  • Auto-run Application After Bluetooth Connection *solved*

    I was wondering if there was a way to immediately run an application after establishing a connection to a specific Bluetooth device.
    For example, I have a DualShock 4, and there's an application out there that lets you customize the LED and use the touchpad to control the mouse.  I would like it if this application would run as soon as I am connected to this controller.  I don't want it to run when I establish a connection to just any Bluetooth device.
    Does anybody know of a way I can do this?  I'd rather not use cron, since it's a bit slow and this is something that only needs to happen once.
    If it matters, I'm using KDE.
    Last edited by schmidtbag (2015-02-28 18:50:48)

    Try writing a udev rule.
    https://wiki.archlinux.org/index.php/Udev
    http://www.reactivated.net/writing_udev … ternal-run

  • Auto running applications at start up...

    Hi...
    I'm reasonably new to macs. I've got a couple of small 'menu bar' apps that I would like Mac OS X to auto-run whenever I boot my MBP up.
    How do I get OS X to do this...?
    Thanks

    System prefs - -> Accounts - Login items.
    Click the + sign at the bottom to add a new start up app.

  • How to set Lion built-in FTP Server auto run off

    Hello all.
    I set FTP Server by using Rumpus Server application.
    But Lion's built-in FTP Server is running on the front.
    So if I try to connect my FTP Server out of my LAN, I can only connect to the built-in FTP Server despite I wanted to connect Rumpus FTP Server.
    It can be solved by unload the built-in FTP Server(using sudo -s launchctl unload...) but every after rebooting I should set it because it is set to run automatically in every booting.
    How can I set the auto run off?

    well, the ftp server (=ftpd) takes account info from the user list for your mac. so, go to the system settings on your mac, then to users, and then just add another user with a password of your choice (tap on the little plus-sign to add a user!). this will then be a valid user for your ftp server after you restart your ftp server.
    the other thing you want to do, about the home directory, is called chroot. you can set the home directory of a specific ftp-user to be another directory then the standard. for this, there are configuration directives in the configuration file in /private/etc/ftpd.conf which you have to edit by hand. so make sure what you do there.
    you should read this before editing the file, this will give you a better understanding of what to put there: https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/ man8/tnftpd.8.html

  • Auto run

    I am trying to install Cakewalk music creator LE however, it only lets me use a autorun install feature which my mac doesn't have the application to run. Can anyone help me solve this problem, in a nutshell how to run auto run on my mac? Thank you in advance.

    None that I know of I am happy to say...
    See here for
    Running Windows on a Mac
    http://www.pcmag.com/article2/0,2817,2344661,00.asp

  • Auto Run ignores URL parameters and uses Defaults on first run

    We have BI Publisher 11g standalone (not OBIEE).
    We have a suite of BI Publisher reports, all set up on data sets with default parameters.
    All reports have Auto Run enabled and caching disabled.
    The reports are run from a Flex UI application using a URL i.e. URLVariables and URLRequest and navigateToURL.
    The required parameters for any report are read from BI Publisher using the web services, then the user makes their selections in our custom UI.
    We use:
                             urlVariables['_xpf'] = null;
                             urlVariables['_xpt'] = 0;
                             urlVariables['_xf'] = 'html';
                             urlVariables['_xmode'] = 1;
    The first time any user runs any report in the application the report is generated but with the default parameters NOT their selected values, and it displays the parameter controls when the settings as per above say it should NOT.
    Any report generation after that is fine - it runs with the user's nominated parameters values, and it does not display the parameter controls.
    Originally we thought it might be caching so along with all report caching settings being disabled, we introduced a parameter to force the uniqueness of each report URL i.e.
                             urlVariables['noCache'] = new Date().getTime();
    In Safari, if we Reset Safari then restart the app in the same browser window we can reproduce the problem.
    Any suggestions please?
    Thanks

    I'm not sure where the "Enable Document Cache" setting is?
    All reports have caching disabled - so for each report in its Report Properties, all items on the Caching tab are checked off.
    i.e.
    Enable Data Caching - off
    User Level - off
    Document Caching - off

  • Auto Run off but report access via URL generates default

    Hi,
    We have BI Publisher 10.1.3.4.1. I access reports via URL from another application outside BI Publisher.
    For my reports, I have Auto Run disabled. Still Accessing the link via URL seems to generate report instead of waiting for user
    to enter parameters and click view.
    When I view report via BI Publisher, the behaviour is ok, i.e. it won't generate until I click the View button.
    Does anyone know how to make sure BI Publisher won't generate report without an explicit click of View button when invoked by URL.
    Thanks
    Girija

    Hi Tim,
    I am calling the report in _xmode=6 i.e. the parameters show and the view button shows.
    We want the user to be able to input their parameters and run the report.
    regards
    Girija

  • Auto run Servlet

    I want to develop a Servlet application that auto run on the server everyday.
    The application should be satisfy the following requirement:
    1. auto run on scheduled time
    2. immediately run when the server restart
    Any idea to do this ? Plse help
    Also, any sample code or example is helpful.
    Thanks

    First, very thanks to all of you.
    To sum up the idea, I have 2 ways
    1. Use "crontab" to schedule application to run. (I'm using Linux with Tomcat)
    2. Place the application in thread.
    Which one is better ? And, I'm new to crontab. Is this possible to set the CLASSPATH and run application by using crontab. Now, i'm trying set CLASSPATH in crontab, but still not success.
    If I use 2, place the application in thread. How to auto run application after the server restart ?
    Thank you. I really want to know which one is a good solution before I start to write my program.
    P.S. I not sure my question is a Servlet Technology question or not. So, I also place my question in Forum - New to Java Technology

  • Auto-Run Code on OC4J start

    Hi,
    Is is possible to Auto-Run a piece of code, either by
    calling a method on a Session bean or calling a Servlet,
    when OC4J is started up?
    Cheers,
    Ro

    Hi
    You can also use a servlet that implements ServletContextListener - this fires before the application server opens up for user requests. Great for loading lookup codes, etc....

  • Printing application ALWAYS running after printing

    I would like to see if I am the ONLY one who found that when you print, the printer application stays running and you have to manually quit the application!!?? BEFORE Leopard, you didn't have to do this and I cannot see where I can have this automatically quit AFTER sending all to the printer!
    Any suggestions other than going back to the previous version of the OS...

    Open the printer's queue application (or print something, and as you noted, it'll stay open).
    Right-click -- or control-click -- on the application's icon in the dock.
    Select the "Auto-quit" item, see that it's checked, and then quit the application.
    Voilà! Next time you print it'll quit on its own.

  • No auto run on CS4 student licensing

    I just purchased CS4 Design Standard to install on an HP laptop running Vista 64, sp1. I purchased it this summer, so it is fairly new. When I tried to install from the first disc in the case entitled, "Application 2," I get the following error message:
    E:\
    Application not found
    There are no auto run or setup.exe for CS4 on the disc.
    The other disc, "Content," does not have anything to install - just pdf files and such - no programs.
    I have sent an email outlining the problem and looked through the forums, but didn't see this specific issue.
    Any ideas?

    There were earlier reports of academic packages missing a DVD. The only
    thing I can suggest is calling Adobe.
    Bob

  • JMF Application that runs without selection.

    What do I need to make a JMF Application that runs without selecting a media file from a directrey.
    I wish to have a folder of avi's that can be played the moment the player is activated. Auto play without selection from within the PC that it's running from. No applet.
    Thankyou

    viafax999 wrote:
    Why would you use a flakey app to replace a built in windows function that works fine?
    Turn on remote desktop sharing undr computer properties and run mstsc on the machine with kb, mouse and monitor to control the other pc's via rdp
    Synergy isn't that flakey. It just doesn't get along well with one particularly old program I use that access an online database via FTP.  When the FTP transfer is running, Synergy stops.  As soon as the transfer is done, it comes back.  Not even a minor annoyance for me.
    Synergy is not a remote desktop sharing function.  It is simply a keyboard and mouse sharing function like the old keyboard/mouse switch boxes.
    I've two computers on my desk; a work laptop and a home desktop.  Each has their own keyboards and screens.  With Synergy, I can use one keyboard and mouse to control both machines.  I simply move the mouse from one screen to another and control follows.  It's just like moving a mouse between multiple monitors on a single machine, except that I'm actually switching between computers.
    I thought Windows remote desktop functions are for just that - remote access to a machine where keyboard, mouse and screen are duplicated on the client.  If I'm missing something, please educate.  Also consider if it'll work with Windows7 Home Premium.
    Synergy is also cross platform, so when I fire up a Linux machine I sometimes use, it too can share the same keyboard and mouse.
    Thanks.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Why i insert a CD to install a camera, but the auto run doesnt start???

    Why i insert a CD to install a camera, but the auto run doesnt start???

    Mac software typically does not run installers on inserting the optical media (CD or DVD.) You have to go inside it and find for the installer application - if you can't find it look through the documentation that came with the camera.
    Best of luck.

Maybe you are looking for