Running background process at start-up

Hello.
I would like an executable file called "functionToVolume" to secretly run when Mac OS X starts up.
This little programme allows me to change system volume with generic PC keyboards using PrtSc and ScrlLock keys (http://alum.hampshire.edu/~bjk02/functionToVolume.zip).
I struggled for hours to figure out how to do this by myself, but I guess I need your help.
I tried using rc.local, launchctl and launchd but got really confused and gave up
Joseph

by an executable do you mean a unix executable that you normally run from terminal or a regular application?
If the latter simply add it to your login items in system preferences->accounts and check the box to hide it. If the former, create a launch daemon to run it at login. you said you couldn't do it but try [lingon|http://lingon.sourceforge.net>. it makes it very easy to create simple launch daemons like that.

Similar Messages

  • I want to run background process at plsql program based on the timeout

    Hi
    when it comes to ready state I want to run background process at plsql program based on the timeout
    Thanks and Regards
    ch saivikram

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • Background processes while starting the R/3 system

    hi all
    I have IDES R/3 4.7 installed in my hard disk,
    and when i start the background processes normally the status has to be Wait , yes.
    But these days when i started the processes, i'm getting the statuses as "Ended"  with all the 12 background processes,
    and i can't be able to get into the login screen.
    can anyone tell how to get the processes states to wait and yes state.
    Thanks

    Have a look at the dev_-traces located in /usr/sap/work directory. You should pay special attention to dev_w0 and dev_ms, and then look through the other dev_w files.
    I guess, there you will find a hint leading you to the cuase of the issue

  • How to run background process with web application

    Hi,
    I have a web application , a servlet. I would like to have a background process that collecting data for my servlet.
    How can I achieve this? can someone point me to a tutorial or example?
    Also, would it be possible to share an object between the background process and myservlet?
    Thanks,

    Thanks for the idea.
    I had the background process running. :)
    But I'm still do not understand this part to share an object such as Java Map (<id,myobject>), what do you mean by "task a property of my ServletContextListener" ?
    BalusC wrote:
    If you make the task a property of your ServletContextListener implementation and put the implementation in the application scope, then you can access it from any servlet.Do you mind explain to me a bit more I'm still fairly new with this or maybe if you know an example.
    Here's my code snippet so far. How can I share myList to MyServlet?
    public class MonitorTimer extends TimerTask
           private Map<String, Channel> myList;
         @Override
         public void run()
              System.out.println("Monitor Timer times up");
              //Clear the map before fill with the new data
              if(myList!= null)
                   myList.clear();
              loadConfig();
            private void getData()
               //fill myList with data
    public class MyContextListener implements ServletContextListener
         @Override
         public void contextDestroyed(ServletContextEvent arg0)
              // TODO Auto-generated method stub
         @Override
         public void contextInitialized(ServletContextEvent arg0)
              System.out.println("Context Initialized");
              Timer timer = new Timer();
              //Run MonitorTimer every 2 minutes
              timer.scheduleAtFixedRate(new MonitorTimer(), 10*1000,2*60*1000);
    public class MyServlet extends HttpServlet implements Servlet
         @Override
         public void destroy()
              // TODO Auto-generated method stub
              super.destroy();
         @Override
         protected void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
    }Thank you so much for your help,
    Edited by: geek.shrek on Nov 4, 2009 1:50 PM

  • RAC instance won't start: ORA-00443: background process "VKRM" did not star

    I've logged a SR with Oracle, but while waiting for response from them...I'm stumped I can't find more out here about this article.
    On Oracle knowledgebase...any search for VKRM, gives about the same 3 articles relating to RDA (Remote Diagnostic Assistant).
    Not sure what went on here.
    I have a 5 node RAC cluster. All other instances seem to be running just fine.
    On one instance...some applications were getting an error like:
    ORA-01033: ORACLE initialization or shutdown in progress
    I looked in GRID...and it indicated that only two of the 5 nodes had this instance running...which was strange in that with srvctl, it showed ll 5 up and running:
    [oracle@server2 bin]$ ./srvctl status database -d INSTANCE
    Instance INSTANCE1 is running on node server1
    Instance INSTANCE2 is running on node server2
    Instance INSTANCE3 is running on node server3
    Instance INSTNANCE4 is running on node server4
    Instance INSTANCE5 is running on node server5
    Anyway, thought I'd poke around. I started with trying to get srvctl to stop instance #2...in GRID it seemed that instance 2,4 and 5 weren't working.
    srvctl stop instance -D INSTANCE -i INSTANCE2
    This just hung...
    I thought I'd cycle all the nodes...so, did a ctl-c out of that one, and did:
    [oracle@server2 bin]$ ./srvctl stop database -d INSTANCE -o abort
    PRCD-1124 : Failed to stop database INSTANCE and its services
    PRCR-1065 : Failed to stop resource (((((NAME STARTS_WITH ora.instance.) && (NAME ENDS_WITH .svc)) && (TYPE == ora.service.type)) && ((STATE != OFFLINE) || (TARGET != OFFLINE))) || (((NAME == ora.instance.db) && (TYPE == ora.database.type)) && (STATE != OFFLINE)))
    CRS-2675: Stop of 'ora.instance.db' on 'server5' failed
    CRS-2675: Stop of 'ora.instance.db' on 'server4' failed
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    The ORA-01034 messages repeats a number of times...and the one with server4 and server5 repeated again too.
    I also got this:
    CRS-2680: Clean of 'ora.instance.db' on 'server2' failed
    CRS-2675: Stop of 'ora.instance.db' on 'server5' failed
    CRS-2675: Stop of 'ora.instance.db' on 'server4' failed
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    I get similar messages when I try to restart.
    clusters seem to be up, and other instances seem to be ok
    Looking at alert log...I found some strangeness in the traces
    Starting background process VKRM
    Errors in file /u01/app/oracle/diag/rdbms/instance/INSTANCE2/trace/INSTANCE2_dbrm_26982.trc:
    ORA-00443: background process "VKRM" did not start
    Errors in file /u01/app/oracle/diag/rdbms/instance/INSTANCE2/trace/INSTANCE2_ora_27467.trc:
    ORA-00450: background process '' did not start
    Errors in file /u01/app/oracle/diag/rdbms/instance/INSTANCE2/trace/INSTANCE2_ora_27467.trc:
    ORA-00450: background process '' did not start
    Error 450 happened during db open, shutting down database
    USER (ospid: 27467): terminating the instance due to error 450
    LGWR waiting for instance termination
    Instance terminated by USER, pid = 27467
    ORA-1092 signalled during: ALTER DATABASE OPEN...
    opiodr aborting process unknown ospid (27467) as a result of ORA-1092
    Looking at the trace listed above:
    2011-05-09 12:17:18.305726 :84271119:db_trace:ksb.c@2157:ksbs1p_real(): [10254:6:464] KSBS1P: process DBRM trying to start background VKRM
    2011-05-09 12:17:18.305729 :8427111A:db_trace:ksb.c@2220:ksbs1p_real(): [10254:6:464] KSBS1P: process DBRM obtained PR enqueue to start background VK
    RM
    2011-05-09 12:17:18.306021 :8427111D:db_trace:ksb.c@2354:ksbs1p_real(): [10254:6:464] KSBS1P: creation error posted OER(1089)
    2011-05-09 12:17:18.306029 :8427111F:db_trace:ksb.c@2424:ksbs1p_real(): [10254:6:464] KSBS1P: out of loop: process did not start
    Trace Bucket Dump End: default bucket for process 6 (osid: 26982, DBRM)
    ORA-00443: background process "VKRM" did not start
    kskdbrmpa: reply error 450
    Any ideas? Again...I can't seem to find much of ANY information searching out there for the VKRM background process not starting...
    Thanks in advance,
    cayenne
    Edited by: cayenne on May 9, 2011 11:34 AM

    Anyone? Anyone? Bueller?
    Ok..have been on phone with Oracle support, and have them stumped so far.
    I've checked..other instances are running (except one other that failed to cleanly shut down with srvctl and same error messages).
    I've check...ASM is running on all 5 nodes. I've used crsctl to check CRS on all nodes..clustering seems ok.
    Memory while somewhat high...should have enough room...the system has never complained before, and this has been up on this config for over a year.
    I was able on node one...to fire up the first nodes instance using the pfile there...it came up. I started it restrict..and promptly ran a datapump export, and then shut back down.
    While Oracle support is going through logs and trace files I sent...I've got another 11Gr2 environment (3 node RAC) I've been using as a test environment...and am recreated the instance there temporarily to allow my developers to test and get past the upcoming deadline.
    But, I'm still puzzled as to the solution on the main cluster. This seem to be normal, except these two instances....
    any ideas on where and what to look for?
    cayenne

  • Background Processing, Selection Screens and Variants

    Hi All,
    I am having a little trouble Background Processing with Selection Screens and Variants.
    When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
    FORM START_BACKGROUND_PROCESSING.
      CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
        EXPORTING
          TITLE_NAME            = 'End Customer Report '
          JOB_NAME              = 'customer_report'
          PROG_NAME             = 'ZSE_SD_SALES'
      EXCEPTIONS
        NO_SUCH_PROGRAM       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "START_BACKGROUND_PROCESSING
    After the background process is started, all teh data is collated then written to the app server. this is the order
      ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
        PERFORM INITIALIZE_DATA.
        PERFORM SELECT_DATA.
        PERFORM PROCESS_DATA.
        PERFORM GET_END_CUSTOMER_DATA.
        PERFORM WRITE_TO_APP_SERVER.
    Any ideas? Points given to those who are helpful

    done myeslf

  • Program runs background

    i wonder if i can develop a program runs background, i mean start automatically when the mobilephone is power on, and keep alive background until the mobilephone is power off?
    can j2me do this? if so, how to do it? what api/support must the operation system provide?
    thank you!

    See PushRegistry concept in MIDP2.0 for that. But its only specific to some event like incomming SMS or like that.
    sunshine

  • Starting essbase as background process in 11.1.2

    Hi,
    We have installed 11.1.2 hyperion products. We are having issues with OPMN and its starting up.Without opmn we can start essbase in freground ..using the script
    startEssbase,bat file in D:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin. startEssbase.bat in this folder starts essbase onforeground.
    the link between opmn and essbase is broken. So we want to start essbase without opmn control. startEssbase.bat in the D:\Oracle\Middleware\user_projects\epmsystem1\bin doen't not do anything as opmn link is broke.
    Can anyone provide soem suggestion on how I can make Essbase run ias background process without opmn.
    I have used option like start /b startEssbase.bat./ but did not work.
    Thanks
    Srinivas

    These work for me
    export outline sample.basic all dimensions to xml_file "D:\sample.xml";
    export outline sample.basic list dimensions {"Measures"} tree to xml_file "D:\SampleMeasures.xml";
    Ran from a client machine and it creates both the files on the local client machine.
    Have you tried running on the server, are you using a different version of Maxl from the server?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to run the LabVIEW exe as background process?

    Dear All,
                   I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
                    I want to run it as a background services as like runs in the windows processes.
                    Please suggest me something.
    Thanks,
    Nishant

    Dear Smercurio,
               Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
               Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
    Thanks,
    Nishant
    Message Edited by Nishant on 12-05-2006 10:12 PM
    Message Edited by Nishant on 12-05-2006 10:16 PM
    Attachments:
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB

  • I want to run java program on windows environment as background process

    Hi all
    I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
    for example look this programe
    import java.io.*;
    import java.util.*;
    public class TestClass {
         class ravi extends Thread{
              public void run(){
                   try {    
                        String target_file = "ravind.txt";
                        File targetfile = new File(target_file);
                        PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
                   for (int i =0 ; i < 100 ;i++ ){
                        Thread.sleep(10000);
                        writer.println(" ravindra shukla ");
              } catch (Exception e) {               
                             e.printStackTrace();
         public static void main(String[] args) {
              TestClass test1 = new TestClass();
              TestClass.ravi r1 = test1.new ravi();
              r1.start();          
    System.out.println(" return from main ");
    first i compile this
    javac TestClass.java
    then i run this by using this command
    java TestClass
    but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • Cannot start background process DTPR_13362_

    Hi ,
        Whenever DTP  is executed  in the Dev Server,it throws an error.
    Error  msg: Cannot start background process DTPR_13362_1 26.09.2011 14:17:44 1 Min. 50 Sec.
    while checking the message in the monitor screen the cursor is at this function.
    CALL METHOD cl_rsbm_log_step=>raise_step_failed_callstack
    Please let me know what needs to be done here so that DTP processed sucessfully.
    This is urgently required..thanks..
    Regards,
    Kalim.

    Hi
    Check how many parallel processes are defined for this DTP.
    display the DTP in RSA --> in menu bar click on "goto" --> "settings for batch manager"
    In the next screen you will get the number of processes assigned to this DTP.
    When you are running this DTP, check these many background processes are available in your system.
    If you want you can decrease this number9by default it will be 3)
    Regards,
    Venkatesh

  • Disk utility started, but a background process needed in disk utility didn'

    I am stumped. I have talked to tech support, read many threads on this error message, tried all the suggested solutions, and still I get this message "Disk utility started, but a background process needed in disk utility didn't start properly. Please quit and restart disk utility."
    The problem has been around for a while apparently. One technique called for removing iTunes to the desktop, trashing certain files in the library, then running disk utility. This did not work. Another suggestion was to trash, of all thing, the Chess program. This also did not work. Booting from the installation disk and running disk utility there to repair permissions also apparently does not work. Nor do third party software, such as YASU seem to get through to repair permissions.
    Given the number of discussion boards addressing this problem, i was stunned that applecare/tech support person I talked to had never heard of it. Please please please help!

    If you moved Disk Utility from the /Applications/Utilities directory, i.e. the Macintosh HD > Applications > Utilities folder, move it back to that folder.
    If memory serves, the "workaround" you cited involving iTunes only applies if you are using Mac OS X 10.3.9.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Why may any user leave background processes running at will?

    Hi all,
    yesterday, I encountered a rather strange problem with linux in common, at least
    I think so.
    In my .xinitrc, I'm starting offlineimap - a console-based mail synchronization
    tool - in the background. Being naive, I expected it to be killed along with the
    gui applications started in that file. Yet, that assumption proved wrong and I
    started asking for help on how to kill that process on #archlinux.
    The guys there (again, thanks for your help and patience!) all came up with
    plenty of ideas on how to avoid starting more than once instance of the program,
    but that wasn't really what I was looking for. The only usable option came from
    anrxc, who suggested killing the program from awesome's logout hooks.
    Not fully satisfied with the solutions, I started thinking and came up with the
    following question:
    Why is every user allowed to leave background processes on the machine
    just as he pleases, even if he logs out?
    I even tried this over ssh, where the launched commands have some sort of
    "parent" process, but even in this circumstance it was possbible to leave
    background processes behind after logging out.
    I mean, on my desktop system, this is not a big issue... I shut it down once
    every day at the least and there are no users on it besides my girlfriend and
    me. But this seems like a fundamental problem to me. Why is this allowed at all?
    Does it make sense to do it that way? What are the consequences?
    Let's discuss!

    JohannesSM64 wrote:Really, you need to find a better way to manage offlineimap than starting it in xinitrc. Automatically killing any background processes on any logout will not make linux better.
    Hmm... to me, .xinitrc is the place to start apps which should live just as long
    as the graphical user login lasts. On #archlinux, several other places were
    discussed, but none of them were "the thing":
    .bashrc
    Doesn't work, because a) the process would only get started when I open a shell,
    not when I log in and b) because finding a place to stop the process would be
    even harder.
    .bash-profile
    Only gets executed for a login shell, which I wouldn't account for a graphical
    login at all.
    wm startup script (in this case awesome's rc.lua)
    Possbile, but not much better. Would fork the process all the same, merely
    moving the problem. If X got killed, not even awesome's logout hooks would
    apply.
    Also, this approach isn't wm-agnostic, so trying out / switching to another wm
    would have the problem occur all over again.
    So what do you suggest? Do you have a good idea?
    pseudonomous wrote:
    As to the question of "why" things act this way:
    I believe this is linux display it's heritage as a mulit-user operating system that people used terminals to log into to run program on.  A big place where unix used to be (and is, to some degree, still used) was in universities where a professor or graduate student might have logged onto the system to run some program to process some large set of data.  You wouldn't want to sit around and wait for this program to finish; you'd want to run it in the background, leave, and come back and look at the results a week later, when the program finished running.  One of my friends doing applied math research still does this sort of thing.  I'd imagine it's relatively common.
    Process management was largely handled be systems administrators, and commonly you were being billed for CPU time, so it was in your interest not to leave programs that you didn't want to run running when you logged out.
    Hmmm... that seems like a rational explanation. But in the case that is the
    reason for linux' behavior: Why isn't there some kind of a mode setting? Like
    one which allows any user to keep processes alive and another one that doesn't?

  • How can i run my java program in background process?

    hi all,
    i am working on desktop monitoring so when i start my program on client machine that is visible to all but i want this program client not visible to all instead of this can be run in background process . so, nobody can see that.
    so, how i can do this ?
    pls pls help me
    thanks in advanced to helper
    regards
    maulik & ritesh

    this will run the java program in the background.It'll just use the Windows Java Console instead of the command-line console. It has nothing to do with running as a background process.
    Edit: though this might be exactly what the OP wants: not "background process" but "no DOS console".

  • How do run any vi as background process

    Hi,
    Thanks for your replies to my earlier queries. I have completed the VI project for UPS. Now I want to make this VI to run in background process, means we have to give a one installable file to the user, when he/she installed this file, the VI has to run as background process and it has to start whenever PC boots up. And also VI icon for displaying front panel has to go to system tray (where time is displayed). Can you please let me know how to do this.
    Regards
    Shivakumar Singh

    I just did a quick search on the knowledge base and found a couple of examples for you wanted to do. I would suggest doing a quick search on there.
    Knowledge Base Example
    Knowledge Base
    Joe.
    "NOTHING IS EVER EASY"

Maybe you are looking for

  • Brand new HP Photosmart 5520 from Apple. WILL NOT PRINT BLUE.

    Brand new HP Photosmart 5520 from Apple. Mod#CK042-64004  Ser#CN38K13242  WILL NOT PRINT BLUE.  No blue on alignment. Ran HP  Utility CLEAN PRINT HEADS several times.  Cartridge vent open and ink wet to touch.  Ran  HEAD CLEANING from TOOLs Printer s

  • Network Windows Laptop with iMac

    Hello, To start with I am not quite sure if this is the right section, if not then please let me know and i will move the thread. I am looking to find a way to connect on my iMac through my windows based laptop and specifically on my Movies folder. i

  • How loud is the whine on the new 2Ghz MacBook?

    I have been seeing alot of posts about people complaing about the whining thier MacBook is making. I was wondering how loud it is, and if its really anything to be concerned about. My old iBook makes some noise, but its not anything that annoys me, a

  • C#: How to remove all images in a Crystal Report

    Hi there, how can I remove all images that are inside a Crystal Report programmatically? How are they stored internally? How can I access these images? Thanks, Pascal

  • ITunes progress bar freezes iTunes, kinda.

    So I just got my HD replaced. My iTunes library file (the .xml file) became corrupted. I started a new Library. I'm now in the midst of adding new songs, not the songs that I originally had in my iTunes. What happens though anytime I edit the id3 tag