Unix command to set hot corners up

Is there one?
Thanks

systemsetup -getusingnetworktime
Display whether network time is on or off.
systemsetup -setusingnetworktime<on off>
Set using network time to either <on> or <off>.
systemsetup -getnetworktimeserver
Display network time server.
systemsetup -setnetworktimeserver <timeserver>
Set network time server to <timeserver>.

Similar Messages

  • UNIX command to set permissions for a "public" partition?

    I have a bunch of Core Duo (1.83) iMacs running 10.4.11. We have the drive partitioned so that students can save/store stuff locally for myriad reasons.
    With infrequent regularity, the read/write permissions on the partition get munged up and staff have to reset permissions (using the Get Info window).
    I would DEARLY love to use ARD 3.2 to send a UNIX command to set permissions so that EVERYONE has access to EVERYTHING on the partition regardless of who has logged in. We have cleverly named this partition "Scratch" 'cuz, well, you know, that's what scratch drives are for, yes?

    What I was hoping for was the ACTUAL chmod command so that I could just cut and paste it.
    Sorry not to be sufficiently specific. If you'd said that initially, I could have provided a more direct answer. I didn't know if you were even aware of chmod, and lots of people when they learn about it don't want to go anywhere near a chmod command, so I posted only to the general description first so you knew what you were getting into. Templeton has you covered for the specific command.
    For future questions, the more specific you can be about what you're aware of/have tried and what it is you're looking for, the more precise folks here can be in their answers.
    Regards.

  • UNIX command to set time

    I'm looking for a UNIX command to set each client machine to use a network time server to obtain the correct time. Any help would be appreciated. Thank you.

    systemsetup -getusingnetworktime
    Display whether network time is on or off.
    systemsetup -setusingnetworktime<on off>
    Set using network time to either <on> or <off>.
    systemsetup -getnetworktimeserver
    Display network time server.
    systemsetup -setnetworktimeserver <timeserver>
    Set network time server to <timeserver>.

  • UNIX command for Energy Saver settings - Set Schedule

    Using ARD 3, can anyone help me with a UNIX command for setting the scheduled sleep and wake times for 10.4 clients?
    Thanks,
    Josh

    Thanks for getting me on the right track, I've been working with pmset for a couple days now and I'm having some problems getting my basic schedule that I'd like to work. I'm hoping for another nudge in the right direction. Here's the scenario:
    I need the computers to wake at 7am on weekdays and to sleep at 3:30pm on weekdays as well. I've also got an addition to make the displays sleep after half an hour of inactivity, Here's what I'm trying.
    pmset repeat wake MTWRF 7:00:00;
    pmset repeat sleep MTWRF 15:30:00;
    systemsetup -setdisplaysleep 30;
    I've been trying to push this out as a batch of commands in a template which would be slick, but the problem I'm having is that the two pmset commands don't get along and whichever one is run last cancels out the other. In the actual System Prefs of the machine I'm sending the commands to, there are the two check boxes for Wake or Power On and the other for Sleep or Power Down but I can't get them both to be checked from my UNIX commands.
    Could anyone please help, I feel like I'm so close!
    Regards,
    Josh

  • Unix security and privacy setting unix command via apple remote desktop

    Could someone guide me on the unix command to set System Preferemces Security & Privacy to xx minutes [see screenshot please] via Apple Remote Desktop.
    https://dl.dropbox.com/u/5485939/osx_screenshots/sys%20pref%20security%20privacy .png
    Thank you,

    Pereference tend to be stored for the computer as a whole
    /Library/Preferences/
    or specifcally for the user
    /Users/USERNAME/Library/Preferences/
    well when I set required password for XX minutes... I see that
    /Users/USERNAME/Library/Preferences/com.apple.screensaver.plist modfication date & time changes to the current time & date... hMMM maybe the setting we want is stored here? Can we test this?
    If I check require password and then do the terminal command:
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see
        askForPassword = 1;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    turn it off
    run the terminal command;
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see:
        askForPassword = 0;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    so I can turn it on with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    and I can turn it off with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool FALSE
    So if a user is logged into a computer. I could send unix command as current console user.
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    BUT what if the user is logged out? or there are more then one user on the computer?
    then I could run unix command as user root and send
    defaults write /Users/USERNAME/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    (replace USERNAME with the user's short name.)
    but what if I don't know the user name? or names
    send unix command as root
    ls -al /Users/
    get back a list of folders
    bob
    surely
    shares
    and then do
    send unix command as root
    defaults write /Users/bob/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    defaults write /Users/surely/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    you could also do some thing like
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 5
    if you want to change the period of time to lock to 5 seconds
    or
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 900
    (900 seconds  / 60 seconds = 15 minutes)

  • Why do hot corners break every time I wake from sleep?

    Every time I open my computers, my set hot corners have stopped working. In the settings, they are still there, but I have to either change the settings and change them back, or use the terminal command 'killall Dock' to fix the issue. It's quite annoying to have to do this every single time I turn on my computer. Does anyone know a fix?

    I have this same issue - after coming back from sleep hot corners stop working - this is a constant problem and I think having to type "killall Dock" is NOT a solution.  I also have a rMBP with 10.8.2

  • Accessing Hot Corners using AppleScript in Mavericks

    Hello,
    I'm trying to update a previous utility that could be used to disable/turn off hot corners using an applescript (the script was taken from https://gist.github.com/klynch/827581 and is pasted below). Trying to update it for Mavericks, I saw that the 'top left screen corner' can no longer be used to refer to hot corners. Google has uncovered a 'stack exchange' question that seems to purport that it is not possible anymore (http://apple.stackexchange.com/questions/106775/how-to-fast-set-hot-corners-in-m avericks). Is that true?
    If that is indeed true, is there a work-around to my work-around? Specifically, is there a way to easily disable hot corners for when I go into a full screen application or anything like that? I'm thinking something like Caffeine, but for hot corners and not for power saving options. Thoughts?
    Thanks in advance!
    Disable Hot Corner:
    tell application "System Events"
    activate
    if UI elements enabled then
    tell expose preferences
    set properties of the top left screen corner to {activity:none, modifiers:{}}
    set properties of the top right screen corner to {activity:none, modifiers:{}}
    set properties of the bottom left screen corner to {activity:none, modifiers:{}}
    set properties of the bottom right screen corner to {activity:none, modifiers:{}}
    end tell
    else
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.universalaccess"
    display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\""
    end tell
    end if
    end tell
    tell application "System Preferences" to quit

    However, if you wish to be able to toggle between to states of the hot corners (enabled/disabled), the following script would be more appropriate:
    property theSavedValues : {"Mission Control", "Desktop", "Dashboard", "Launchpad"} -- for example
    tell application "System Preferences"
        activate
        set current pane to pane id "com.apple.preference.expose"
        tell application "System Events"
            tell window "Mission Control" of process "System Preferences"
                click button "Hot Corners…"
                tell sheet 1
                    tell group 1
                        set theCurrentValues to value of pop up buttons
                        if theCurrentValues is {"-", "-", "-", "-"} then
                            repeat with i from 1 to 4
                                set thisValue to item i of theSavedValues
                                tell pop up button i
                                    click
                                    click menu item thisValue of menu 1
                                end tell
                            end repeat
                        else
                            copy theCurrentValues to theSavedValues
                            repeat with i from 1 to 4
                                tell pop up button i
                                    click
                                    click last menu item of menu 1
                                end tell
                            end repeat
                        end if
                    end tell
                    click button "OK"
                end tell
            end tell
        end tell
        quit
    end tell

  • Can I set 4-bit color depth (16 colors) with a Unix command?

    "M4" by Deadly Games, a Sherman Tank simulator, insists that the color be set to 16 before it will launch completely and run, but the least I can select on my G4 QS 2002 with 9.2.2/10.3.9/10.4.10 is 256 colors. Is there a way to choose fewer colors than 256 using Terminal and a Unix command?
    TIA

    Camelot wrote:
    4-bit screen depths have not been supported in a long time. I don't know any option that will get you that setting.
    I can't imagine any current game would require that setting. Even if it only uses 16 colors internally it shouldn't need the entire system to be set that way.
    Can't argue with any of your statements or opinions.
    BTW, do you have an answer/solution to the problem?

  • Can't Set Remote Login OFF via Send Unix Command systemsetup

    Trying to use the System Setup->Remote Login template in ARD to turn off Remote Login (SSH) in Sharing panel of System Preferences on Mac that is administered through Apple Remote Desktop.
    In Apple Remote Desktop (ARD), I select the client machine, then choose "Send Unix Command..." from the "Manage" menu. In resultant window, I pick "System Setup->Remote Login (SSH) from the "Template" drop down box in the upper right. That populates the upper window with Unix commands. I edit/change the "on" to "off" and tell the dialog to Run command as User: root, then click on "Send" button.
    Progress bar goes forever with no change.
    I can turn off Remote Login via ARD by controlling each client machine via an ARD WINDOW, then navigating to the Sharing Preference pane, but that process is tedious when performing for multiple client Macs.
    Strange, but I CAN use the "Send Unix Command..." outlined above to turn ON Remote Login, and get the status of Remote Login ("systemsetup -getremotelogin"). Just can't turn OFF Remote Login (quickly/efficiently).
    man systemsetup suggests I need to write the command as "setremotelogin -f off" but that failed with an improper command syntax error.
    Thoughts?

    It’s waiting for you to type a confirmation. If you run this command on the command line normally, you’ll see the message:
    Do you really want to turn remote login off? If you do, you will lose this connection and can only turn it back on locally at the server (yes/no)?
    Use this command instead:
    systemsetup -f -setremotelogin off

  • Dock, Expose, Hot Corners etc. don't work anymore! Solutions?

    Two days ago I decided to restart my Macbook. When the screen popped up it gave me the option of "Reopen windows when logging back in". I never noticed this before switching from Snow Leopard to Lion but maybe it's always been there. Anyways, as you know it is checked by default so I unchecked it just out of curiosity and restarted my system.
    When the system came back on, my desktop background had vanished, hot corners will not work, dock does not show up, and when I try to change any of these preferences they do not take. (i.e.-changing orientation of the dock from bottom to left, it simply won't let me select left) I can only open applications from spotlight, and when I mouse over an item now it turns the font white, which never happened before since I did not have it set like that. In addition, google chrome and safari both crash quite frequently since these mess-ups, and so I have resorted to doing all of my work from Firefox.
    I've read in these forums as well as other place on the web about this problem happening, but I have tried all of the remedies to no avail. In the past, the problem for users was a lot of the time caused by the use of a wireless mouse. However, I have never used a wireless mouse so this can't be the problem. I also went in to disk utilities and ran a repair, thinking maybe something might click but nothing did. I have restarted/shut down many times just to see if the problem has fixed itself, which it hasn't yet. I've gone into Activity Monitor and relaunched Finder several times, and also noticed that Report Crash is working super hard on the system for some reason. (Maybe because of many of my programs freezing and crashing?)  I also deleted many recent downloads, since I had one or two unfinished downloads and this had been the problem for one user inparticular...I did a "Secure Empty Trash" from the finder menu for these items. I also ran CleanMyMac and uninstalled a couple of applications that I don't use just for good measure...still NOTHING.
    I'm in no way an expert with computers, I just own a macbook and it's having problems. If you guys could lend your expertise as a last ditch effort that'd be great. I'd prefer not to take it to GeekSquad, Apple Store, or a repair shop because I'm a college student and I'm literally broke at the moment, so any remedies or ideas would take weight off of my chest.
    Thanks in advance-Jameson

    Also, this black bar shows up towards the bottom of the screen on the left side when it's on the apple loading screen. Not sure what it is...and yes I have also run system updates.

  • Screen Sharing and Hot Corners/expose bug?

    I tried searching but I came up with nothing. I have an iMac and a Macbook. On the iMac I have hot corners set up to use expose. On the bottom left I have it show the desktop and on the bottom right I have it show all windows. Now when I use my macbook to screenshare with my iMac and try to drag a file on the iMac, it activates one of the hot corners even though my mouse cursor is no where near either of the corners. If I deactivate the hot corners, I can drag just fine but I don't want to have to do that every time I use screen sharing. So this is making screen sharing pretty useless. Anyone else have this problem? I just submitted a bug report too.

    I have the same problem. Very annoying.

  • Having issues with two-finger swipe and hot corners. Help!

    I've lately been having an issue, where my two finger swipe will stop working. I also notice that 3 of my 4 hot corners no longer work, either. The only one that works is the top left. When I restart my computer, or change users, etc, it's fixed for a while, but then the problem will start up again in about an hour.
    I've tried the Software Update, and it seems everything is up to date. Any solutions?? I spent a good deal of money on this iMac, and I'm concerned there's something wrong with it.
    I have a 27" iMac, which I bought around November 2011. Software is OSX 10.7.5
    Thanks!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Execute Unix command on login

    Hello, is it possible to execute a unix command on user login?
    I want that every time a user login on a mac at my company, a unix command be executed.
    Is this case, this is the command: defaults write com.apple.mail NSPreferredMailCharset "UTF-8"
    thks in advance

    {quote}Loginwindow Scripts
    Another way to run applications at login time is to launch them using a custom shell script. Mac OS X provides two options for launching scripts when the user logs in. When creating your script file, keep the following in mind:
    * The permissions for your script file should include execute privileges for the appropriate users.
    * Scripts launched by loginwindow are run as root. Therefore, you should thoroughly test your scripts before deploying them to make sure they do not adversely affect the user's system.
    *In your script, the variable $1 returns the short name of the user who is logging in.
    * Other login actions wait until your hook finishes executing. Therefore, have your script do what it needs to do quickly and then exit. {quote}
    I want the script to be run as the current user that does the login, and not as the root. I think that if its run as root, it changes nothing in the user. Does this root issue apllies to the Zerwas method?
    It depends on how Zerwas was thinking you'd implement it. If you added it to each user's login items, it should run as the user. If you create a startup item to run it, it will run as root. I'm assuming Zerwas was suggesting the former because there would be no point in wrapping the shell script in an AppleScript if you are going to turn it into a startup item.
    What you might be able to do - at least with the loginwindow script - would be to explicitly run the command as the user by making use of the fact that the user name is passed to the loginwindow script as $1. I've never used loginwindow scripts but it seems as though it should work.
    Another possibility would be to use a LaunchAgent. These are really intended to manage background processes, though, and it seems an unnecessary use of resources to load one which will only ever be run at startup.
    Can I ask why you wish to run the script every time a user logs in? Is the concern that the default will get set to something else and needs to be reset regularly?
    - cfr

  • Hot Corners: Display Won't Sleep

    I have, for a long time, used hot corners to put my MBP display to sleep. I have things such as backups run while I sleep, so shutting down MBP or hybernation is not an option. Since the last OS update, envying the display sleep hot corner only works for less than a minute before the display wakes. I have had no problems with display sleep on my iMac. Does anyone have a suggestion to a fix? Thanks.
    Alice

    I'm running the latest OSX, and have the same problem.
    The screen saver, or sleep, set in hot corners, only runs for 10secs at best.
    Obviously something is disturbing the mouse. Could it be the uneven surface of the desk playing havoc with the laser? I'm not using a mouse pad, just using the desk surface.

  • IMac Hot Corners stopped working

    I have a wireless mouse and keyboard. Mouse has new batteries. Hot corners worked yesteday but no matter how I set them in System Preferrences, they do not work today. Any suggestions?

    I was about to try your suggestion, however the hot corners have started working again. I don't know why... Hopefully, whatever it was has fixed itself.

Maybe you are looking for