Having problems with launchd a plist file and launch on demand.

First, my plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>TestApp</string>
<key>OnDemand</key>
<true/>
<key>Program</key>
<string>/Applications/Test/TestApp</string>
<key>ProgramArguments</key>
<array>
<string>daemon</string>
</array>
<key>Sockets</key>
<dict>
<key>SockFamily</key>
<string>IPv4</string>
<key>SockPassive</key>
<true/>
<key>SockServiceName</key>
<string>8585</string>
<key>SockType</key>
<string>stream</string>
</dict>
<key>WorkingDirectory</key>
<string>/Applications/Test/</string>
</dict>
</plist>
The idea is, if another app which I have tries to connect to 127.0.0.1:8585 that my test app will launch and do its stuff. The test app is the server and the guy making the call is the client.
The plist file is located in "/Library/LaunchDaemons" and is owned by root and only readable by anyone but root. Similarly TestApp is only readable/executable by root and no one else can do anything. Finally TestApp is a C++ program not an actual application ie:TestApp.app/Contents/etc...
If it were windows, it would be TestApp.exe.
Anyway, when I invoke my other program, TestApp isn't launched. (I rebooted after I put the plist file in so it would be read). I know TestApp and TestClient can talk, if I run them both myself everything is fine. I just want to get launchd to do it on demand. There isn't a clear way for me to debug this because if there is an error, I do not know where to look to see it, if any such errors are reported. Syslog doesn't show anything of interest in this reguard.
Any help is greatly appricated.

Hello Mark:
You are seeing a "normal" behavior, if this is the case on the load of a first report. Subsequent reports should be significantly faster. Only way to make the first load appear faster is to load the CR assemblies and dlls on app start. E.g.; load a fake report on app start. Unfortunately, those 20+ seconds will now move to the initialization / load of the app...
Ludek
BTW., downloading the latest Service packs is never a bad idea and may help a bit, but not 10+ seconds for sure.

Similar Messages

  • ITunes / iPod having problems with lyrics in MP3 files and not with M4A ?

    Over the last two month (without this forum) I believed sometimes to be the only one having a weird problems with iTunes lyric format structure.
    Now after more than 50h of investigations interesting results appear.
    The field of trouble:
    a) People are not able to delete lyrics in iTunes
    b) People discover that iTunes and their iPod/iPhone do not show the same lyrics
    c) it seems that the lyrics of certain songs can't synchronised with the iPod
    d) it seems that the problem in iTunes can appear more than one times that itunes corrupts the contents of lyrics in a way that:
    e) the text structure is damaged, no more line breaks, no empty lines between text sections.
    After all my suspicion is: All of this trouble can be caused by one problem:
    iTunes (at least latest version 9.0.3 (15) has a -unkonwn- problem with the lyric-text structure in MP3-files. It seems that iTunes does not have the same problems if the file is in M4A-file format, created by apple-store files being downloaded, or CDs being converten in iTunes using the build in AAC-converter!
    Converting "infected" files (via AAC) to M4A are clean again (on iTunes and iPod) showing no more one of the trouble ahead. The ghost is eliminated. Everything synchronizes as it should be.
    And I for myself have to convert more than 3000 songs now... to ged rid of this nightmare.
    Now I'm very curious of You experiences. Can You confirm my suspicion? Or have You had similar problems with Your M4A-files too?
    - Best Regards ThomasK_DJ, south Germany

    Try this -> http://mp3val.sourceforge.net/ to verify and fix MP3 files.
    Also, it could be the version of the ID3 tags.
    Select a song in iTunes then go to iTunes menu Advanced -> Convert ID3 tags and select a different version and see what happens.

  • HT204382 Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no d

    Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no diference

    Download and install the free VLC for Mac - that should work:
    http://www.videolan.org/vlc/download-macosx.html

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • HT201210 I m having problems with both my iphone 3gs and 4 when my cellular data is on and my battery is fully charge but out of suddenn it will shut off can i know how can i troubleshoot this issue thanks

    I m having problems with both my iphone 3gs and 4 when my cellular data is on and my battery is fully charge but out of suddenn it will shut off can i know how can i troubleshoot this issue thanks

    simply try doing a back up and restore
    when going thru the activation screen, select SET UP AS NEW and then test your device. if it is not shutting down then it could be 1 or more apps tht have been downloaded wch could be affecting the device
    you will then need to follow the process of eleimnation, meaning add 2 apps and then monitor your phone, if nothing happes then add another couple of them and then check
    good luck !!

  • Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit

    Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit. What can be causing the issue?

    Hello, please checkout my post concerning lagging issues.
    I've also provided a link to a video I've recorded showing the Illustrator behavior on my iMac 27"
    Adobe Illustrator Cs6 Lagging Extremely Slow on Yosemite 27" iMac i7 late 2013

  • I have just been having problems with my Canon MP250 printer and decided to uninstall and re-install the printer and everytime I try to re-install the printer trough preferences and all I keep getting was a message saying "preparing to queue"......

    I have just been having problems with my Canon MP250 printer and decided to uninstall and re-install the printer and everytime I try to re-install the printer trough preferences and all I keep getting was a message saying "preparing to queue"...... I then decided to try and reload the Canon printer drivers and for some silly reason I deleted the existing Canon printer drive. Now I cannot load them from the CD provided with the printer or from downloads through the Apple store. If anyone out there could help me I would be greatly appreciated......

    These Canon printer/scanner drivers from Apple - http://support.apple.com/kb/DL899 - should work. The MP250 is listed on the support page. Try downloading and installing them.
    Good luck,
    Clinton

  • Is anyone having problems with the battery drains quickly and the iphone4 heats up in use and in charging after upgrading to 5.1.1?

    Is anyone having problems with the battery drains quickly and the iphone4 heats up in use and in charging after upgrading to 5.1.1?

    I have had the same problem but I seem to be getting somewhere to fixing it!!! My battery was going down at 20% an an hour now its 10% with constant use and 5 in standby !!! So improvement all round
    First I did a restore then I drained the battery i started to charge it and when it came on I turned the phone off completely and let it charge to 100% I then left it for a couple of hours on charge at 100. I saw no improvement after 1st drain so I repeated the drain battery and charge steps again with the phone turned off when charging and have seen a very big improvement. I am going to do it again tonight and hopefully problem solved!!!!
    The next issue is iMessage as that's playing up and wifi drop out
    Good luck

  • Having problem with hp computer freezing up and rebooting? have already updated video drivers

    I having problem with HP Slimline Desktop with AMD Vision, freezing up and rebooting, and will sometimes show horiztonal lines across the screen, making screen unreadable. Have had problem for a few weeks, I have already checked with HP tools hard drive and video display both check out, and have I restored the system back to its orginal version by using partion drive and, none seems to help get rid of the freezing and rebooting of PC. Any thought what need to look at?

    Can you locate a product number on the system that is freezing??
    I am an HP employee, but my views are my own and are not endorsed by HP.

  • My wireless mouse for my iMac keeps loosing connection. Started after I was having problems with computor not waking up and I put the the setting to "never". Anyone having same problem?

    My wireless mouse for imac keeps loosing connection. Started after I was having truoble with computor not waking up and I put the setting to "never sleep". Any suggestions?

    If it's an Apple mouse, make it "Favorite" in Bluetooth preferences.
    If it's not, the same thing might help, too, but if the problem continues it could be a driver issue (possible incompatibility with your OS X version).

  • Client Having Problems With Acrobat 11.0.3 and files created in earlier versions

    We are noticing problems with our PDF's depending on the version of Adobe they are viewed with.
    If the PDF File was created pre 11.0.3 and you view it with 11.0.3 you only see squares in the narratives from SQL/Oracle Text Fields .
    If the PDF File was created with 11.0.3 and you view it with 11.0.3, it is fine.
    Update.  As with most Software/Support services the correct information is not always received and must be forced out of the Customers. 
    The PDF files are drawing of Auto Accidents created in Adobe Acrobat and stored on a Microsoft Server Network.  The files are then merged inside a Microsoft Visual FoxPro 9.0 SP2 Application with Data received from Microfoft SQL Server 2005 Database  through a ODBC driver to a FoxPro Cursor and then created with a Visual FoxPro Report Form. The VFP Report form page that displaies/prints the PDF file is a OLE File Object and is created / Printed through Amyuni 4.5xx Converter to a PDF file and then viewed with Adobe Acrobat 11.0.3.

    There are software packages that will do those checks. So in that sense there is a way to check. However, that would be a programming task and not necessarily simple. So I really can't help you on the programming aspect (I would refer you to something like the SDK forum for programming).
    To check the file, you would normally open the document properties (ctrl-D). The general tab provides the version number and the fonts tab will tell you what fonts are used and embedded.

  • Having problems with EMU Xboard-49 drivers and FL Studio (updated)

    Hi there, i'm new here.
    I'm having a problem with drivers or whatever.
    <strike>Sometime ago when i installed the Midi controller, Windows installed automatically so i didn't even need to install the website ones, which it was ok to me. It was working perfect, except the Modwheel didn't work in FL Studio.</strike>
    <strike>Today i decided to delete the Windows drivers and install the ones in the website to check if it could solve the problem with the Mod Wheel.</strike>
    <strike>While i was installing the website drivers i noticed in google about FL Studio has a problem with Modwheels generally.</strike>
    <strike>So well, i tried to install again the automatic Windows drivers, but i can't anymore for some reason, the install program asking something about a Emuumidi.sys from a CD or DVD etc.</strike>
    <strike>So i installed the website ones again, but now for some reason, it says to me that it's already installed the last version and the program will close.</strike>
    <strike>Emu Xboard 49 seems not working completely now, the parameters numbers which before showed in the LCD are not showed anymore. FL Studio even can't scan it now. And i can't uninstall any driver because i can't find them now.</strike>
    <strike>Anyone could give me a hand please? I'm desperate.</strike>
    <strike>Thanks for all, i hope you can help me with this.</strike>
    <strike>By the way, i'm on Windows XP Home and the Midi controller worked perfect before, but not now.</strike>
    EDITED: Now i could "overwrite" the drivers and at least it can be scanned in the Midi devices in FL Studio, but the only thing i can is playing keys, but i can't link/midilearn any knob. If i press or tweak a knob, seems to nothing happens. I tried even to reinitializate with the 4 buttons combination, but looks like the buttons doesn't works, like if they were disabled.
    Also, the problem with LCD numbers still off. I can only see a P01, but when i move a knob i can't see the typical 000 to 127 cyphers which i could see yesterday.
    Any clue?
    Thanks in advance.

    Hi,
    FL Studio is a 3rd party software, the controller knobs available in FL should match the controllers supported by xboards. You might want to browse on the manual page 28 on how to setup the 16 Channel Control Number.
    Any FL Studio users out there might want to chime in to comment about this.

  • I was having problems with Firefox browsing VERY SLOW, and since Mozilla doesn't have support for Mac users, there was no solution to this problem. I have switched to CHROME and WOW this browser if FAST!.

    Lovin' Chrome. Good bye Firefox!

    i have the same problem with the above..firefox is running too slow with the games in facebook..but it runs good when browsing my updates, msgs, photos...firefox is totally opposite of IE..IE is faster with the games and slow while browsing..i love to use mozila but when i do games it really pisses me off...hope you could help me..

  • I know why I have been having problems with FF 3.6.16 and the last thunderbird update

    I am in Canada and for some reason downloads for both 3.6.12 FF and the last Thunderbird update was the BritishVersions thats why I have UK search engines, not the US versions maybe that is why I am have trouble with my email and addons. The other 2 computers in my house is the US versions.
    But there is still something a bit screwey with 3.6.12 some of the addons are not working properly on the other puters. Can you please change the sofware to the US version please????? Thank you
    I have deleted the software twice already. before realizing I was downloading the british version.....same problem with my Thunderbird can't connect to isp even though everything is done correctly!!!!! Help!!!!!

    You probably can do that.<br />
    If you keep the wrong language then remove the offending language pack from the chrome folder in the Firefox program folder.
    You may need to (re)set the pref "general.useragent.locale" to the preferred language ("en-US") on the about:config page.<br />
    You can open the about:config page via the location bar, like you open a web site.<br />
    Use the Filter bar at the top of that page to quickly locate the pref.

  • OBIEE 11g having problems with password protected PDF files.

    I have been able to get an analysis in OBIEE 11g to display PDF files.
    However, some of these documents contain sensitive information and must be secured. Since anyone with access to the file name
    could simply type in the proper path in the browser window, this is unacceptable. In order to try and prevent this, I created a pdf file
    that is protected with a password.
    Opening the file by itself, produces the desired results. The password is requested before the file will open.
    When I open the file through my analysis in OBIEE, Adobe reader activates, but the password is not requested and the file does not open.
    It is as if OBIEE is somehow not sensing that Adobee is asking for a password.
    Does anyone have any experience with this?

    FYI, in case anyone is interested, I found out what is going on.
    I created the original password protected PDF using Microsoft Word. I did this because I do not have a full version of Adobe Acrobat that allows me to create files.
    On a hunch, I found someone that has a full version of Acrobat, and had them create a password protected PDF file. This file worked perfectly.
    Apparently, Word is not strictly adhering to PDF guidelines, and OBIEE senses the differences, resulting in the file not opening properly.
    Something to keep in mind for anyone linking to password protected PDF files in OBIEE.

Maybe you are looking for