Cp command at Loginhook no longer works

Hi
Since 10.6 I successfully used command like cp /myplace/myfiles   $1/Library/Preferences/ with loginhook. Since 10.8.4 it looks like $1 doesn't return user short name. What is workaround for this?
Thanks

try
`id -un`
However, you should try to recreate your login hooks in launchd since login/out hooks have been deprecated:
Important: There are numerous reasons to avoid using login and logout scripts:
Login and logout scripts are a deprecated technology. In most cases, you should use launchd jobs instead.
Login and logout scripts are run as root, which presents a security risk.
Only one of each script can be installed at a time. They are intended for system administrators; application developers should not use them in released software.

Similar Messages

  • Command plus is no longer working for me correctly in Safari 8.0.2.

    Command plus is no longer working for me correctly in Safari 8.0.2.  When I use it to zoom in a safari window, it makes fonts bigger instead of scaling the entire page bigger like it used to.  What changed or what did I accidentally change?   This  is only happening in Safari.  When I use Command Plus in a Chrome or firefox browser window, it works perfectly still.
    To explain this a little better,  I have a 27" iMac.  When I open a browser widow in safari like yahoo.com,  The content fits in about a 10.5" section of the screen.  If i go to full screen or enlarge the window to fit the full screen the same 10.5" content is centered in my screen.  Previously, I could use Command Plus to zoom and the entire page would scale increasing from 10.5" to eventually filling the screen.  Now when I use command plus, the font's get bigger and bigger but the page width stays at 10.5"

    Hi petraidm,
    Welcome to the Support Communities!  If I'm understanding you correctly, it appears you have updated Safari to the latest version, but are still using Mountain Lion as your operating system, is that correct?
    You may need to adjust your screen resolution, or the zoom settings in the Accessibility pane of System preferences.   Usually, zooming changes the size of text or content in a window -- not the size of the window itself.   So I usually go to full screen mode in Safari, and then zoom in if I need to enlarge the text.
    OS X Mountain Lion: Zoom content on the screen
    http://support.apple.com/kb/PH11488
    If you have difficulty seeing or reading items on the screen, you can use Accessibility preferences to magnify items on the screen. You can zoom the entire screen or zoom the area that has keyboard focus in a separate window.
    Set up zoom
    Choose Apple menu > System Preferences, click Accessibility, and then click Zoom.
    Do either of the following:
    To zoom with keyboard shortcuts, select “Use keyboard shortcuts to zoom.”
    To zoom with your mouse or trackpad, select “Use scroll gesture with modifier keys to zoom.”
    Choose where the magnified content appears with the Zoom Style pop-up menu.To display it in a window near the mouse cursor, choose Picture-in-picture. To display it on the entire screen, choose Fullscreen.
    To set options for zoom or the zoom window, click More Options.More Options panel
    You can also turn on zooming by pressing Command (⌘)-Option (⌥)-F5 and selecting options in the Zoom section.
    Zoom with keyboard shortcuts
    To zoom in, press Command (⌘)-Option (⌥)-Equal Sign (=). To zoom out, press Command (⌘)-Option (⌥)-Minus Sign (-).
    If you chose Picture-in-picture zooming, a window appears near the mouse cursor with the magnified image. If you chose the Fullscreen zooming, the entire screen displays the magnified image.
    Zoom with a mouse or trackpad
    To zoom in and out, hold down the modifier key you specified while you perform the scroll gesture.
    For example, if you have a trackpad and used the default settings, zoom in by holding down the Control (^) key while you drag two fingers up on the trackpad. Zoom out by holding down the Control key while you drag two fingers down on the trackpad.
    If you chose Picture-in-picture zooming, a window appears near the mouse cursor with the magnified image. If you chose Fullscreen zooming, the entire screen displays the magnified image.
    Last Modified: Aug 8, 2013
    OS X Mountain Lion: Shortcuts for Accessibility preferences
    http://support.apple.com/kb/PH10566
    Turn zoom on or off
    Command (⌘)-Option (⌥)-8
    Zoom in
    Command (⌘)-Option (⌥)-Equal Sign (=)
    Zoom out
    Command (⌘)-Option (⌥)-Hyphen (-)
    Turn image smoothing on or off
    Command (⌘)-Option (⌥)-Backslash (\)
    Display the zoom window when needed
    Hold down Option (⌥)-Control (^). Release to close the window.
    OS X Mountain Lion: Adjust your display resolution
    http://support.apple.com/kb/PH11462
    I hope this information helps ....
    - Judy

  • Command-Shift-Delete no longer works in Mail

    I could easily delete Mail Trash using Command-Shift-Delete. Now that no longer works.

    Anthony Beard wrote:
    NOW I KNOW WHAT THE PROBLEM WAS...--> THE FONT!!!
    I always use monospaced fonts for email, by preference; it's easy to line up things. The problem is the font. Change the font to something other than what you're using, I just selected Arial and then the italic feature worked!!! Hope this helps!
    It isn't about whether it's monospaced, it's about whether the font contains the style variants. Clearly Apple is taking the position of the typographic purist, which means they won't fake a bold or italic like in the old days, they only want to use it if it actually exists.

  • An iTunes key command I created no longer works after the recent update

    I created a key command years ago for joining tracks. (Command-J) When the iTunes 11 update happened, it stopped working. I know it is the same key command for View options but it always worked before. So even if I make it a new command, it still won't work.
    Anyone else have a similar problem?
    Thanks

    You shouldn't clear cookies on shut down, but let them expire instead.
    Details like websites remembering you (log you in automatically) are stored in a cookie.
    *Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: Exceptions
    In case you use "Clear history when Firefox closes" or otherwise clear history:
    *do not clear the Cookies
    *do not clear the Site Preferences
    *https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

  • Keyboard Shortcut for bullets (Command-Shift-L) no longer works

    Hey Guys,
    It seems so odd and I find it so irritating that I have been using this keyboard shortcut which is Command-Shift-L for bullets in Outlook, Notes and almost any word processing applications. All of a sudden this seems to have gone and now replaced by a Google Search. I tried researching a lot on the internet and found many articles which confirmed that this was indeed a keyboard shortcut but I couldnt find even one which could tell me what happened to it and how to make it work again. I've got so used to this shortcut because my work involves mainly around drafting emails and documents.
    I have Macbook Pro Retina 13inch 2013 model & running Mac OSX 10.9.4 OS.
    Now I did find one website link which told me how to disable the Safari trigger for this shortcut and I was successful in removing that shortcut. But I am stuck at the point where it's just blank. So now when I press these keys, nothing happens because no shortcut is set to it. I am moving in circles and would really appreciate if anyone can help.
    P.S I've already gone through many links which say create paragraphs, this and blah blah but sorry I am not interested in that....Some links also say that Option + 8 key works for the bullets but that doesnt work for me either. However, I dont want that too. I would want the original shortcut which was there and would really appreciate if someone can tell me how to get it back or even configure it back to the way it was. Sorry for being rude but I am just frustrated with the long hours I have spent in fixing this silly issue and don't want the similar answers which I have already come across on the other links. Your help is much appreciated. Thank you in advance!

    Thanks for your reply. I can't seem to find the bullets option in Shortcuts. Could you give me more details on how to make that happen.
    There is no bullets option in Shortcuts.  Defining shortcuts works by binding menu items in an application to a key combination. You have to find the name of a menu item in the application   you are using.
    For example in "Notes" is a menu "Format > Lists > Insert Bulleted List"
    To bind it to the shortcut "⇧⌘L" open the Keyboard System Preferences > Shorttcuts tab and press "+" to add an application shortcut.
    Type the name of the menu item "Insert Bulleted List" and enter the key combination.
    This will work in "Notes", but you have to identify the names of menu items that will produce bullets  in your other applications, if you want to add the shortcut for them.

  • Place command in Bridge no longer works

    I have been using the Place > command in Bridge to place an additional Smart Object into an existing PS doc. It worked fine (except for registration problems if the existing PS image is 100%).
    Recently (maybe after upgrading to Leopard) the Place > command does not recognize the existing PS doc. I get the command and arrow, but nothing else after the arrow.
    Thanks,
    Sonny

    Solved!!
    When I also learned that I had lost Tools>Photoshop..., I then went into Prefs. Duh!! Turned on Startup Scripts so that Bridge can communicate with PS. Works fine.
    Thanks,
    Sonny

  • Command+option+click no longer works?

    Hi all.
    I have always used the combination command+option+click a lot to switch app and hide all others. Last week, this combination stopped working in a few apps, and now it doesn't work anywhere. Either my computer has forgotten a few things, or there's been some strange background update that I'm not aware of. Anyone else with this problem?

    Did you install anything last week?
    Have you tried it in another user account? That will isolate it to your user account problem or system-wide.
    Have you tried it in Safe Mode? That will isolate third-party software from interfering.
    http://support.apple.com/kb/HT1564

  • Scheduled commands using at no longer work

    at worked fine up until a few days ago - it did work with 10.5.2, but some update after that broke it.
    You can schedule a command, but then, a random date is set, and the job has always the same id.
    Eg:
    $ at 0130 tomorrow
    echo "bubu"
    job 3 at Sun Mar 2 01:30:00 2008
    $ atq
    688128 Sun Sep 29 18:11:44 1929
    I've tried this on three different machines, all with 10.5.2 and the latest updates installed.
    Anyone has and idee???

    Interesting about the 'a' queue being hosed. I successfully submitted a job to the 'c' queue:
    % at -q c midnight
    echo "hello world!"
    job 5 at Sun Mar 23 00:00:00 2008
    % atq
    5 Sun Mar 23 00:00:00 2008
    Then I submitted the same job to the 'a' queue:
    % at midnight
    echo "hello world!"
    job 6 at Sun Mar 23 00:00:00 2008
    % atq
    688128 Tue Jun 10 02:58:44 2025
    5 Sun Mar 23 00:00:00 2008
    Looking in /var/at/jobs, I saw:
    % ls -l
    total 12
    -rwx------ 1 skip staff 2187 Mar 22 09:22 %A8000060132c3cc
    -rw-rw-r-- 1 root wheel 6 Mar 22 09:22 .SEQ
    -rw------- 1 root wheel 0 Mar 21 22:24 .lockfile
    -rwx------ 1 skip staff 2235 Mar 22 09:20 c000050132c3cc
    By renaming the first file there I was able to fix things:
    % mv %A8000060132c3cc a000060132c3cc
    % atq
    6 Sun Mar 23 00:00:00 2008
    5 Sun Mar 23 00:00:00 2008
    So, is Apple reading this forum or is there some "official" place to
    submit a bug report?
    Skip Montanaro

  • I used to beable to push firefox with sccm using setup.exe from the command line , this no longer works i want to be able to have a silent install run for all,

    In the past I have always created a deployment with sccm and installed firefox.exe with the /s switch from the command line what is the new switch for silent installation ?

    hello, have you tried it with the full installers that are available at https://www.mozilla.org/firefox/all yet?

  • It is necessary for me to have more than one window open in Firefox, and the command (New Window) no longer works. How do I have two different websites open at the same time on separate displays?

    I used to be able to open two Firefox windows at a time, with one website on one display and another website on another display. Now when I select New Window, nothing happens.

    You can tear off a tab (right-click: Move to New Window) to open it in another window and resize both windows so you see them at the same time.
    *Fox Splitter: https://addons.mozilla.org/firefox/addon/fox-splitter/
    *Split Pannel: https://addons.mozilla.org/firefox/addon/split-pannel

  • Forms HOST command no longer works after database upgrade from 10g to 11g

    Hi,
    After upgrading the database 10g to 11g the forms HOST command no longer works on Unix server. The form used to work fine prior the upgrade. I read all the threads I could find and did not see any solutions. Adding PATH and LD_LIBRARY_PATH does not work because it does not even run a basic shell script. (I saw this solution, adding PATH and LD_LIBRARY_PATH, in many questions / threads).
    1. I wouldn't expect the database upgrade to be an issue, but it is the only change we had.
    2. Note, 11g is Oracle Fusion Middleware which is quite a bit different than 10g.
    I even tried the most basic commands like "echo" which is a build-in Unix command and there is no directory for it (ie. no /usr/bin - so variable PATH is irrelvent). i.e HOST('echo hi'); and HOST('echo "hi" '); and even HOST ('echo hi > /my_file.txt'); all returns FORMS_FAILURE (actually the if is IF FORM_SUCCESS THEN ... else ... and the else part always runs now - whereas it didn't before.).
    Or basic commands like /usr/bin/ls as in HOST(/usr/bin/ls). At that point I was just testing the Unix command would return FORM_SUCCESS even though I could not see the results (because they weren't writing to a log file). Notice that I'm using the direct path /usr/bin so no Unix environment variables were needed.
    The form does use webutil but that part works. For example, we have webutil_file_transfer( ....) The file shows up on the application server and in the expected directory.
    Here's the main goal. Upload a file from clients local PC to the datebase server. The form uploads the file to the Application server, then we have a Unix script to scp (secure copy) the file from the application server to the database server. IF webutil, or any other Oracle functions could put the file on the database server that would be better. But, I don't know of any procedures that do that - or would have done it cleanly (i.e. storing to database and write back to server and then using a blob etc. )
    Anyway, I was hoping someone would help with either of these.
    1) Get the HOST command to work. - If we can get that to work then I wouldn't need any more help. We can just call the already existing Unix script to copy the file from the application server to the database.
    2) OR be able to upload directly to the database server - wanted to do that originally
    Any help would be appreciated

    Solution for those interested and for anyone else searching this forum for a solution
    I found this on My Oracle Support:
    <h3>Host Command from Forms Not Working in 11g in Sun Solaris Sparc OS [ID 1157346.1]</h3>
    Applies To: Oracle Forms - Version 11.1.1.1.0 and later
    Sun SPARC Sun OS
    Symptoms:
    When trying to execute a Shell script or any OS command using the host() Built-in from Forms 11g, the host()command is not getting executed. The same functionality works on other operating systems and in previous versions like 10gR2.
    Steps to be followed:
    1) Take a backup and edit the $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applications/formsapp_11.1.1/config/default.env or any custom environment file.
    2) Locate the following environment variable:
    LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) Comment out this variable. After the changes, it will look like the following:
    #LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) a) Instead of LD_PRELOAD, kindly use LD_PRELOAD_64 as given below :
    LD_PRELOAD_64=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    (This makes HOST AND RUN_REPORT_OBJECT work fine).
    4) Save the file and execute your forms. The Host() built-in will work as expected
    The LD_PRELOAD setting in default.env is only required for the working of signal chaining facility in JVM version 1.5 and later. If you are not using theSignal chaining facility, this variable is not required. For more information, refer to the following documentation
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14772/forms.htm#CJAJGAFF

  • The Command Get-ADUser -Identity username -Properties * No Longer Works Due to a Bug in PowerShell 4 and Win8-1 Pro

    The 'Command Get-ADUser -Identity <username> -Properties *' No Longer Works Due to a Bug in PowerShell 4 and Win8-1 Pro
    It produces the following error:
    Get-ADUser : One or more properties are invalid.
    Parameter name: msDS-AssignedAuthNPolicy
    At line:1 char:1
    + Get-ADUser -Identity ********** -Properties *
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (**********:ADUser) [Get-ADUser], ArgumentException
        + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.ArgumentException,Microsoft.ActiveDirectory.Management.Commands.GetADUser
    This is already documented in these forums:
    1. http://social.technet.microsoft.com/Forums/systemcenter/en-US/1bf9568e-6adc-495d-a37c-48877f86985a/powershell-40-and-the-activedirectory-ps-module?forum=w81previtpro
    2. https://connect.microsoft.com/PowerShell/feedback/details/806452/windows-8-1-powershell-4-0-get-adcomputer-properties-bug
    Unfortunately, in typical style, Microsoft have archived number 1 without bothering to respond with advice.  Can someone in Microsoft please advise your customers here if this is being investigated and of any available workaround or fix ?
    -- huddie "If you're not seeking help or offering it, you probably shouldn't be here."

    Did you consider using one of the "workarounds" below to run an existing version of the AD Module for PowerShell under a specific PowerShell version:
    a. #require -version 3.0    (in ps1 script)
    b. powershell -version 3.0
    Thank you for sharing with us if this helps.
    Desmond, did you miss my reply below ?  I still haven't heard back from you:
    >> "Desmond,
    >> 
    >> Thanks for your quick response.
    >> 
    >> I'm running this just as a command, not in a script:
    >> 
    >> Get-ADUser -Identity <username> -Properties *
    >> 
    >> When I try to run powershell
    -version 3.0 first, then run the above command, it still fails with the same error.  When I then run Get-Host,
    the version still shows as 4.0 so maybe there's more I need to do to launch a 3.0 host.  Anyway, from what I've read it seems your command is more aimed at script compatibility.
    >> 
    >> Can you help ?"
    -- huddie "If you're not seeking help or offering it, you probably shouldn't be here."

  • Command-L no longer works

    Command-L no longer works to select to address bar (or whatever it's called) in Safari. The key binding is still there, but the "Open Location …" command in the menu is grayed out and can't be selected.
    I haven't done anything to change the key bindings. Anyone seen anything like this before?

    Never mind. Fixed when Safari was restarted. Thought I had tried that, but apparently not.

  • Command, Control, and Option keys no longer works with Citrix Receiver after upgrading to OSX 10.9.5

    At first my keyboard did not work with Citrix Receiver after upgrading to OSX 10.9.5 and I found the workaround by using "cmd + tab," however, once my keyboard work within Citrix, the "command, control, and option" keys no longer work.  Does anyone have a remedy for this?

    Keyboard no longer works with Citrix Receiver after upgrading to OSX 10.9.5

  • Bridge place command no longer works for indesign 2014

    Bridge place command no longer works for indesign 2014. It only gives Photoshop as an option. How can I get all other Adobe programs listed under Place ?

    Your post sounds like an InDesign question. 
    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for

  • ASA 5505 L2TP client connect problem

    I am trying to connect MS l2tp clients to asa 5505 and am unsuccessful. I have tried the ASDM VPN Wizard as well as CLI and missing something. I have attached my current config. My client hits the interface and logs an error 713048 Error processing p

  • Printing: The outputs print on a printer other than that specified on the u

    We are using activity profile on the shipment to trigger outputs at different statuses set on the shipment document. In order to have the output trigger based on activity profile we need to have the timing for these output types set to “3”. Now the o

  • How to diagnose large swap usage

    Hi, We have a java application that is connecting to our oracle 10g database. When the application is not connected the swap file usage on the solaris box is about 1GB. But soon as we startup the java application and connect it to oracle the swap usa

  • Creating index on a single partition

    Is there any way in Oracle 10g to create an index on only a single partition of a large partitioned table?

  • Configuring GTC DB connector

    Hi, I have created a DB connector in OIM. As expected, the process form and the resource object are created automatically. Now, i am trying to create a newer version of the form by changing the field labels. While making the version active, I receive