LoginHook Difficulties

I'm trying to setup a script to execute at login. I've followed the directions on this page: http://support.apple.com/kb/HT2420?viewlocale=en_US for using the "sudo defaults write" command:
"sudo defaults write com.apple.loginwindow LoginHook /Users/Shared/hook_test.sh"
The script file is executable and executes without problem when called in from Terminal. The contents of the script file:
echo "ok"
touch /Users/Shared/file_touch.txt
exit 0
When I logout and login again, there is no file created by the touch command (since there is no file by the same name in the directory, it should create the file with the name specified) and I see this error in Console:
*NSTask: Task create for path '/Users/Shared/hook_test.sh' failed: 22, "Invalid Argument". Terminating temporary process.
Any thoughts on what I'm doing wrong?
Message was edited by: akrasia

The problem was with my shell script. I removed the path for the shell: "#!/bin/bash". After adding that back in, the script executes without problems when called via LoginHook.

Similar Messages

  • How difficult would it be to create something like this? 

    I'm looking to create a flash widget similar to what WoW has
    on their main page -
    http://www.worldofwarcraft.com/index.xml
    It needs to have images & text that could be called from
    a php or text file, so that it can be dynamically changed. Movies
    will also be integrated in the rotation as well for the Flash.
    How difficult would this be for someone who's new to flash?
    How long would it take and what all is needed to learn how to
    re-create something like this?

    The difficulty and time to do it depends on the learning
    capability of the new programmer. Patience and a drive to learn is
    what all is needed. Accomplishing one step at a time is probably
    the best approach, whether you're new or well-versed.

  • HT204406 I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out. 

    I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out.  Help!!!

    Where are iTunes files located?
    No, I do not mean just the music.  Copying just the media/music files or the media folder creates problems.

  • Have apple tried to make the syncing of 2 iphone on 1 imac as difficult as possible? My nokia is a doddle. I cant back up my wifes 3gs without entourage. I iponed up a seperte log in on my imace and it still says my wifes is prev synced with another itunr

    By the looks of it I'm having the same problem as lots of people. Apple seem to have made the system of syncing and backing  up 2 iphones as difficult as possible. I have just bought an iphone4 and synced it to my imac. I now have my wife's apps and content. Now when it try to back up my wife's phone using a seperate log in on my imac and a new itunes install I'm asked " do you want to sync and erase all of the details on my wifes phone or do I want to erase and sync and loose all her data. No option not to!!!!   I thought it was maybe the inset of dementure but lots of people are having the same problem. How hard can it be to back up one phone at a time and only that phone?  Backing up my Nokia was a doddle!   I thought Apple were well know for. making things easy?  I have also tried backing up my wife's to a seperate itunes but you cant export her contacts etc unless I have office and entourage which I don't. I cant back up her phone as it is with all it content and apps and start from scratch as I get only the sync and erase and destroy option.  AAAGGGHHH

    1) authorize iTunes on your wife's user account for her iTunes store account(s)
    2) connect the device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred her purchases in the previous step, your content will be in her library and you can re-populate the iPhone with it.

  • Hi Apple Team, my iphone can't share files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it becoming difficult for me to share.

    Hi Apple Team, my iphone can't share bluetooth files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it difficult for me to share bluetooth files from my mac bookpro to my iphone, unless i attached it through email.
    We need it to be acceptable to all devices.
    Thank you!

    You can tell Apple directly at the link below.
    http://www.apple.com/feedback/iphone.html

  • I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    This is crazy! I paid for this service to make it easier to create forms for a company that has had several acquisitions all over the globe. This was supposed to make it easy to create forms hosted on adobe so no matter what happens on all their servers, we would be safe using this forms service until we can integrate all acquisitions and build a permanent web site on a single server. Now I find out that even this is a major issue sending emails to team members, many I have never met so making them a collaborator or even setting up forwarded emails is not something I wanted to do. This service was advertised as simple and easily send notifications to many people. I am now frustrated and thinking this was a waste of money! Why is it like that?

  • How difficult would it be...

    ...for me to remove the harddrive from my g4, turn it into an external harddrive, and attach it to a mini?
    We had a power outage, which fried our power source. Our harddrive should be just fine, but since we have a "vintage" machine (G4 from '97) there aren't many options. We are thinking if we get a mini (which should be plenty of power for us) we could keep the old harddrive, rather than transfering the data, but not sure how difficult it would be for us to do. Do we need to have someone do it?

    Hey there,
    I hope you don't mind me piggy-backing onto this thread, as I am hoping to do the same with my old G4 drives.
    My logic board is dead, so rather than pay $550 to replace it, I thought I'd remove my drives and make them externals.
    The advice already given on this post is helpful, however I am hoping someone can answer a few more questions I have on the topic:
    I have 2 drives; 1 drive is partitioned into two (applications, operating system on part one, media and personal files on part two) and a second spare drive that is used for back ups.
    When it comes to drives that have been partitioned - will I lose any information from either 'part' after I remove it and turn it into an external? Will it even still be a partitioned drive once it take it out?
    Will all my applications be lost?
    Any insight into this would be greatly appreciated!!

  • How difficult would it be to upgrade from Lookout 5.1 to 6.5?

    Hello, I was told that Lookout 6.5 works with Windows 7. Before I purchase 6.5 I need to know how difficult it will be to move from 5.1 to 6.5. Has anyone done this move? If I am going to have to redraw, or do numerous changes to the Database then I won't do it and I'll start from scratch with Cimplicity or ClearSCADA.
    Thanks.
    SCADA Programmer at the Coachella Valley Water District.

    We use a custom SCADA designed by SCIPAR out of Buffalo New York. We've had a SCADA System here for about 28 Years. I have small standalone SCADA Systems running Lookout.
    Another Question, because I can't get the Database Converted for one of my systems, I'm wondering if it is ever needed. This is a small system and the operator's use Trending and Alarm Functions but they never look at historical archives. I do have the Object Members set up to Log, is that needed for Trending to function? I wonder if I can get by without the conversion since it doesn't look like I'm ever going to get it to work.
    SCADA Programmer at the Coachella Valley Water District.

  • How difficult would it be to implement an iMessage whitelist..?

    iMessage spam is a really big problem to me and my family members.  And getting worse by the week.
    Blocking individual senders is ludicrously ineffective and Apple seems to be reluctant to allow us to block entire domains (which would really help).
    So how difficult would it be to implement a whitelist?  (For example... I don't want any iMessages from anybody not in my Contacts list!)
    I'm really close to disabling iMessage altogether.  It is barely worth the effort now.

    The difficulty and time to do it depends on the learning
    capability of the new programmer. Patience and a drive to learn is
    what all is needed. Accomplishing one step at a time is probably
    the best approach, whether you're new or well-versed.

  • How difficult would it be to create a bittorrent server/client?

    I was thinking about creating a program that would use bittorrent to upload/download. I was wondering has someone created a package to make this easy? How difficult would it be to create something like this?

    The difficulty and time to do it depends on the learning
    capability of the new programmer. Patience and a drive to learn is
    what all is needed. Accomplishing one step at a time is probably
    the best approach, whether you're new or well-versed.

  • The app icons and font on my iPhone 4 just went to massive making it difficult to even scroll how can I change it back, where do I go which menu? Thanks in advance

    The app icons and font on my iPhone 4 just went to massive making it difficult to even scroll how can I change it back, where do I go which menu? Thanks in advance

    Next time you accidentally use 3 fingers it will zoom again. Unless you need the feature you're better to turn it off

  • How do I get in touch with a live person (support) : I had an issue and were very close but all over sudden we were disconnected: so frustrating, why is it so difficult to chat with somebody ?

    where can I get back in that chatroom, please ?
    I don't find it back
    I'm here for almost 1,5 hour, and still no solution
    Aquib: Hello. Welcome to Adobe Technical Support.
    Aquib: Hi,annemie.
    annemie: Er is geen programma ingesteld om de URL 'aam://SAPCode=ILST?productVersion=18.0?passPhrase=lcvJXh/BPzsso1eyQ7W2kqJndPYbTbu1Oa/UOm 6WJEjJ+6W3FmoRYXDL/oQlTxpAfoUlXJZue8M2/1KdmWJt8BSMNgftZubNJjpdxNu9qW53gQfkX6l9fndjoZkO3Pep rfAKNyFH4Rq0MG2YWlRRse+3Mh+sIA9E77fT1V+myms=' te openen.
    annemie: hello
    annemie: this is what I get when I try to download the trial version of illustrator
    annemie: doing that for photoshop, some months ago, was not a problem
    annemie: This means: there is no programme installed to open the URL ....
    annemie: I must say that I deleted the software of the CC that I downloaded before to make make free space on my HD of this notebook
    annemie: this pop-up says: "choos a program" or "dismiss" or "search in App Store"
    annemie: what should I do ?
    annemie: I already searched on google, but can not find anything like this remark about "there is no program installed to open the URL ...."
    Aquib: I understand that you get error when you try to download of the trail version of Illustrator you are getting error on your Mac OS X. is that right?
    annemie: THAT's right
    annemie: with photoshop cc it wasn't a problem
    annemie: but in the meantime I deleted the Creative Cloud in "programmes"
    annemie: probably I didn't do that in a proper way ?
    Aquib: Thank you for confirming I will be glad to help you.
    Aquib: Anneime, please try using different browser.
    annemie: like which browser ? can you give an example ?
    annemie: i have no idea
    Aquib: Chrome or firefox.
    annemie: okay
    annemie: Nothing for mac, when it comes to firefox: can I try a little more, do you have the time ?
    Aquib: Sure, I can provide you the link to download the firefox.
    annemie: sorry, didn't see this in time...
    annemie: i'm downloading and installing chrome now, is that okay ?
    Aquib: Okay.
    annemie: the firefox links don't work: i always get redirected to windows platforms
    Aquib: Please, try in chrome.
    annemie: I downloaded it, but cannot find it back
    annemie: why do they make it so difficult ?
    Aquib: Annemie, please look in the downloads folder.
    annemie: I get a popup window with the logo of chrome and the "programs" map with an arrow
    annemie: I looked in the downloads folder, and a have it installed
    Aquib: Please click on it.
    Aquib: And run it.
    annemie: and than I get that pop-up window with the map (programs) and the logo of chrome, so I open that one but cannot find it back
    annemie: I did : I click on it, it runs, and then I have that pop-up window : not clickable
    annemie: okay, I tried again and it's there
    annemie: the ogo of chrome is in the doch
    Aquib: Just to confirm are you able to launch the chrome?
    annemie: is installing right now
    Aquib: Great!.
    annemie: okay, and what now ?
    Aquib: http://www.adobe.com/products/illustrator.html?promoid=KFOHV
    Aquib: please go to above link using chrome.
    Aquib: there select trail version.
    Aquib: Annemie, did you download the trail version/
    You are not currently connected to a chat representative.
    You are not currently connected to a chat representative.
    You are not currently connected to a chat representative.

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • JDev and ADF is difficult

    As a new user to ADF I am finding ADF and JDev a little discouraging and hard to use. I did a search on how to improve jdev's performance and found a lot of useful tips and tricks to use, but I pose the question. Shouldn't it just work out of the box? Coming from a web 2.0 background developing EE applications using Spring, JPA/Hibernate, Extjs, and netbeans I keep thinking to myself wow how in the world should I have known that changing this or that table attribute causes this or that to behave differently. For example I read a thread on multi-selecting table rows and in this article multiselect selectedRowKeys must be removed for multi select to perform correctly. Now I realize this is a simple example, but I find myself asking the same types of questions about dragging and dropping views into jdev or mapping bindings to pages so that I can gain access to data. I can relate to some angry posts by some about how difficult it is to develop anything useful in JDev and ADF because of a series of random problems (things like running OOM, or mapping bindings to a page which then for some reason map incorrectly or they think they are mapped to another page, etc...) Now I can already hear the first response... you are new to this world (yes) and you just need time. What if I told you I've been reading so much documentation over the past month that my eyes are bleeding. I've been through countless tutorials on how to use JDev and ADF. I've successfully created "Sample applications" generating useless tables of data. I've read several books on ADF and how to button click my way to creating EE applications, but I find the memorization of button clicking to be exhausting. I keep telling my boss I want to go back to writing code not dragging and dropping items on a page so that JDev can generate/modify .xml files for me.
    Now that said I know I am new to this world and I'm trying to find some common ground as my job requires me to develop EE applications in ADF, and I must learn this technology. So I ask all of you ADF and JDev advocates prove me wrong here and point me to the documentation that all of you use to navigate this world of yours.
    Thanks for your understand,
    Wraith (Newbie and found wanting)
    Edited by: wraith101 on Aug 14, 2012 3:38 PM
    Edited by: wraith101 on Aug 14, 2012 3:42 PM

    First off thank you for the response Shay!
    >
    Getting used to the way you build applications with JDev and ADF takes time, but think how much time did it took you to learn Spring, JPA, ExtJS etc to a level where you knew every little setting you needed to manually code in a spring XML file, or JPQL query syntax in your JPA or a javascript in ExtJS - My guess was that getting to a situation where you know everything in those technology wasn't exactly a problem less experience.
    >
    It is true it took some time to learn the technologies listed above. I guess If I were arguing for them I would say they were easier to use and learn due to most of them being open source and very popular because of this (i.e tons of examples, books, and documentation). Not sure if ADF is there yet?
    >
    I do like the fact that I can get from 0 to a fully functional page with a few clicks here and there, and then fine tune the results with some property settings in various places.
    And then if I need even further customization I can go to the code level when needed.
    >
    I agree it takes very little time to create something that is at least visually usable. I'm not familiar enough ADF yet to determine now hard it is to actually create a fully functioning application that does more than display data. For example, how would I create a visualization that updates every 10 seconds and allows users to post feedback in a similar manner to this forum?
    >
    The question of whether the declarative and visual development experience is a good thing or not is to some degree a matter of personal preferences.
    I wonder how long would it have taken someone to build something like this: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF112/ADF112.html
    with the stack you mentioned above. How many lines of code would they have needed to write, how many syntax errors while coding, and would the result be as functional so fast.
    >
    Agree I'm not hear to argue which type of development experience is better or worse. I would point out however that as a JDev/ADF developer in order to develop in the technology it seems you must do most of your development within the JDev environment or have extensive experience in JSF (i.e know which xml files to edit and why I believe there is a reason JSF and JSP are seldom used IMHO because they are difficult. I understand JDev/ADF try to solve this problem) were as in other technologies you as the developer can choose the IDE etc. Another thing I noticed while watching the link you listed was the developer went from place to place to place within jdev making changes. As a newbie it seems that in order to develop ADF in JDev you must just "know things" (ie. for example he pulled in a method in to the task flow so he could invoke some validation or prereq check. As a developer how am I to know how and where and why I can/must do these things? ADF seems to be process based in order to achieve some goal, but the JDev framework gives no clues as to what you should/need to do next. As well as that I needed to create that method within my Application Module in order to do this, which by the way was not mentioned within this video.).
    >
    We often see the reaction of "I don't get what all those XML files that JDev generate are doing" reaction from people who just start up with JDev and ADF.
    But we do try and explain how everything is working in places like the ADF Insider Advanced seminars:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html
    I think the fact that there is a lot of documentation for ADF, and a lot of blog entries, how-to's etc on the web is actually a good thing.
    I often find that if I run into an issue with ADF - a simple google search will show me how someone else solved that issue - and I like this too.
    >
    I guess my biggest gripe here would be yes there is tons of JDev/ADF documentation on OTN and other places, but none of it is complete, and I would also argue that the organization on OTN is half hazard, and makes learning ADF difficult as well. I find myself drilling down through layers and layers of links only to not be able to get back to were I came from to look at another topic/tutorial I was interested in(maybe we need a ADF train to be added to the documentation wikis).
    I would also argue when developing in other frameworks writing the xml is a big part to understanding how your application is tied together. For example, Spring servlet mapping or Spring injection mapping. When JDev does the mapping for me I feel that I know less and less about how my application works and I bet all the advanced ADF developers out there know quite a bit about how ADF xml mapping occurs and why, and I bet they make changes to these xml files manually quite often to get things to work as they desire?
    I want to be clear here I am not trying to flaming here, just trying to make a difference for other developers like myself who come along and need to learn ADF to complete some task. Looking at the OTN site I believe creating documentation for ADF development appears to be a top priority, but due to the complexity of the framework there is just so much and it seems to be everywhere. My suggestion would be to include why we are doing such and such with in jdev approach instead of a drag this here to do this approach. For example, I'd like to see a tutorial where it explains when you drag this item in to the content window it creates this xml bind which is the same as what you would normally do in JSF like this (if anyone knows of such a tutorial plz link).
    Again thanks for the reply, and I encourage others to give feedback and suggestions on how I too can become a better JDev/ADF developer.
    -Wraith

  • Why Does iTunes Make Combining Songs Into a Single Album So Difficult?

    Can anyone explain, or refer me to a website, that explains and lists in a "1,2,3" manner the illogic of the iTunes "get info" panes and why iTunes splits, combines and erases data depending upon what you put in the "get info" area. I have looked at many websites with suggestions and some work and some don't. The frustration I have is that I cannot decipher the logic of what iTunes is doing. Some comments and examples:
    1. I thought it was convention when you highlight multiple anythings, and specify a change, this change is done on all highlighted things. For example, when I want to combine several songs into a single album, highlight them all and fill in information in the "get info area", sometimes it combines, sometimes it splits the songs, sometimes it erases the artwork. Even when I specify "part of a compilation".
    2. Sometimes when I add "various artists", it combines the various highlighted songs but then erases the artwork.
    3. One would think that when you specify any songs as "part of a compilation" that would automatically force these songs into a single album. Sometimes iTunes does, and sometime it does not.
    4. Even when I think I have entered exactly the same information there apparently is something different. It has taken me up to 15 minutes first of very careful checking of spelling, spacing, etc. then just totally randomly changing something before I can get songs together.
    5. Why isn't there just a very simple button that says something like: "no matter what, force the highlighted songs into a single album? Is there any way to simply and easily force songs together into a single album no matter what is in the individual "get info" areas?
    Anyway, you get the idea. Surely there is some set of rules or logic that I am totally missing. Thanks.

    Thanks, that was extremely helpful but unfortunately this very well laid out website confirms the fact that this is a very un-Apple-like interface that is confusing, contradictory and extremely difficult to use. Not sure if anyone from Apple reads these threads, but in the next version they need to do an extremely serious remake. I think this part of the interface must have been designed by refugees from the PC camp who somehow got hired by Apple!
    Thanks again.

  • How can I make sure I only see what is on my ipad instead of everything I have in the cloud? Since upgrading to 10S 7 I see every programme I have ever bought - which makes it difficult to see the ones I want to watch now.

    I buy programmes etc for the whole family and it used to be that on each ipad I could only see the icons for the programme I chose to sync to the ipd/ipod etc. However, now every programme I have ever bough is dospayed which makes it difficult for family members to know what they can watch and what they can't. How do I resolve this as it has only been sonce the IOS upgrade?

    If these are videos, try going to Settings>iTunes & App Store and turn off Videos under Show All.

Maybe you are looking for

  • Bootcamp 5 + 3TB HD: The startup disk must be formatted as a single Mac OS Extended (Journaled) volume

    Hi all, I installed a brand new 3TB Seagate Barracuda HD in my iMac late 2009 after read that apple provides a patch to use 3TB discs with bootcamp with 10.8.3. I tried to install windows in my 3TB disc 4 o 5 times, reinstalling from scratch, formatt

  • Why can't I, or how can I, update Photoshop Elements 11 to open D7100 RAW files?

    I purchased Elements 11 via the App Store, and cannot find a way to update the software so that the newest version of ACR (7.4) will work with it. Some places seem to say that if I puchased through the App Store then I can only update the programme w

  • Keeping Two iTunes Libraries in Sync.

    When iCloud became available, I was stoked to be able to sync the iTunes library on my work computer with my home computer. I thought that the cloud would keep my work computer up to date, updating new purchases automatically.  However, that doesn't

  • Three Getting Started Questions with RV180

    I recently purchased the RV180 router. I have a few quick "getting started" questions about using it: 1. Is the "Static DHCP" the screen I need to use in order to reserve DHCP addresses (see attached)? That's where I've been reserving all my DHCP add

  • Tabs not showing but no error

    hi i am building a basic gui interface for a email client and have only just startted but i am having a bit of a problem below is the code for what i have done so far and i can't get it to work in the sense that i have a menu system showing up well b