Command line set time

My kid's iMac doesn't check the time very often even though it is set to do so automatically. Back when I was on linux I could write a little shell program to get the correct time off the network and set the computer's clock and then put the program in crontab. I'd like to do this for his computer but don't know
how. Thanks, Steve

Maybe it doesn't check the time because of the
firewall? If the firewall is turned on in System
Preference > Sharing, check "Allow: Network Time".
Got it! Thanks. Why my computer was set appropriately
and my son's wasn't, I don't know, but this should fix it.
(I didn't even know about this setting.)
Thanks, Steve
(This solved the problem but didn't answer my question. I'm
an escapee from Linux. I like command line options (but of
course don't need it here anymore), in particular, I wish there
were command line options for iCal.)

Similar Messages

  • Command line - Set default app

    Can someone tell me how to change the default ftp helper application for OS 10.5 via the command line?
    Thanks!

    As most probably know, there are issues with Apple's implementation of FTP via the Finder.
    The company I work with delivers product by FTP and to quite a number of Mac users who, when using the Finder, come upon issues.
    For ease of use, I recommend Firefox which does a nice job of FTP. But Firefox doesn't offer a way to change the default helper app for the ftp:// protocol. I know Cyberduck, MoreInternet, the old IE and Fetch do but most just want to use a browser and suggesting IE isn't good.
    I'm just attempting to find a easy way to set this without telling clients to download & install a horde of apps.
    Message was edited by: Alan Brooks1

  • 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>.

  • Command line set saveable of QT

    I cant seem to find checkbox in my QTpro app.
    Does anyone know how I may set saveable of a quicktime movie to "false" from the command line?
    thanks
    Mark

    I don't know the answer to your question, but it might be here:
    http://www.subservientastronaut.com/sw/qt_tools/

  • Command line set of retention?

    Greetings. I'm in a situation in which several thousand users are spread across about 12 POs. I have to manually verify that many of these users are flagged for retention using the MA GWarchive product.
    Right now, I have to do this via the GUI in ConsoleOne and verify in the Client Options->Environment that the flag on the retention tab is selected.
    Any way to get at that programtically? Anything possible using the Admin Object API?
    Thanks.

    gchamby wrote:
    > Greetings. I'm in a situation in which several thousand users are spread
    > across about 12 POs. I have to manually verify that many of these users
    > are flagged for retention using the MA GWarchive product.
    > Right now, I have to do this via the GUI in ConsoleOne and verify in
    > the Client Options->Environment that the flag on the retention tab is
    > selected.
    > Any way to get at that programtically? Anything possible using the
    > Admin Object API?
    >
    > Thanks.
    >
    >
    Nope. GWTIMESTSAMP let's you query/set the timestamp itself, but not I
    believe the enforcement.

  • PM3 programmer communication without command line EXE

    Hello All,
    We are using a PM3 programmer for ICSP in our ATE by using the command line option provided by Microchip. We could succesfully solve the task using USB communication.
    But, to reduce some more command line execution time, instead of command line option we are planning to communicate with the PM3 directly by using the protocol details supplied by Microchip
    To reduce our development time, we want to use the already developed PM3 programmer protocol interface driver VIs, if available .
    If any of you have tried this option earlier, pls provide your suggestions.
    thanks.
    Krishna

    Krishna,
    I'm afraid I don't have any experience in that area, so I can't be of much help.  However, there is some discussion in the thread
    How can I control PIC programmer with LabVIEW which you may find helpful.
    Regards,
    Devin K
    Systems Engineering - RTT & HIL

  • Is there a way to switch between workspaces in Spaces from the command line?  I want to write a script to set up certain applications in certain workspaces (without having to do it manually each time)...

    Is there a way to switch between workspaces in Spaces from the comnand line?  I use several workspaces from Spaces, each workspace having a certain number of fixed applications running.  Rather than set all this up each time I log on, I'd like to write a script from the command line (I use gawk) to automate this. Currently I have a gawk script that, given a directory, opens a few xterms whose working directory is the given directory, and opens "preview" applied to a certain file in that directory.  However, at present I have to manually move an xterm through each workspace and run my gawk script in each workspace (applied to each directory that I'm working on).
    There must be a better way...

    Addendum: Can this be done via:   open -a Spaces --args xxx  , where xxx is some set of arguments (or something like this)?

  • Setting IIS W3C Extended Log File settings via command line, registry or configuration file

    I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file.  More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default. 
    If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.

    I believe I have found a valid solution. You must have the WebAdministration module loaded.  I hope this helps someone.
    Use the following syntax to view current W3C fields:
    Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
    Use the following syntax to set W3C fields:
    Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"}

  • Turn on "Real-time preotection" via command line

    Hello!
    We have a cient without networking resources and I need to turn on the "Real-time protection" which is currently in OFF state.
    How can I do that via command line?
    I tried to review the "mpcmdrun" command but did not found proper switch to turning on this service.
    Regards, 
    Tamas

    You could do a regedit command to silently import a .reg file with the setting in it:
    create a .reg file from the following key:
    HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection
    Name: DisableRealtimeMonitoring
    Type: REG_DWORD
    Data: 0
    Then import it silently with this command:
    regedit /s C:\ExamplePath\Example.reg
    You could also do a PowerShell command:
    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection' -Name DisableRealtimeMonitoring -Value 0

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • Open application via. command line with parameters - Multiple times

    I'm using ANT to compile a program, then launch in FireFox ... I've looked all over for a solution to this, but have yet to find one.
    I need the command to open a specified URL in FireFox... easy enough, right?
    Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
    Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
    Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
    Thanks!
    -Eric
    Message was edited by: eheaton

    If you don't get an answer here, you might try reposting in the UNIX forum. That's where the command line experts tend to hang out. Good luck.

  • I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    >SystemPreferences>Network>DNS

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • File Adapter 7.11 - set operating system command line dynamically

    Hi,
    is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    I need to set  a command line exec depending on some XSL mapping values.
    thx
    holger

    hi,
    >>>is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    >>>I need to set a command line exec depending on some XSL mapping values.
    think about this approach:
    you put the XSL values into the filename after the real name of the file
    in the batch script you use those values in order to execute a dynamic exe command
    after processing you just change the name of the file in the script by removing the xsl values
    simple ? I think so
    Regards,
    Michal Krawczyk

  • How to set plug-in Java Runtime parameters on JRE setup command line

    Hi all:
    I need to install JRE and set the Java Runtime Parameters -Xmx
    by command line ..
    I mean I don't want enter Control panel and set this parameter manually in Java Runtime Parameters textBox..
    thanx.
    Best regards
    w.shiha

    Documentation for controlling the installation is sadly lacking in detail. This is the best I have seen for the Windows environment:
    http://java.com/en/download/help/silent_install.xml
    But, there are numerous other PROPERTY variables that are not discussed. Particularly annoying is the addition of yet another JavaUpdate item with the release of 1.5.0_05. If you can get more information, please post a link to it here.

Maybe you are looking for

  • HT201317 Photo stream stopped working on my PC

    My photo stream on my PC stopped working after a couple of months. I tried resetting it and followed the directions to go through the Control Panel and check the box next to Photo Stream, but it would not allow me to check that box.  Help?

  • Downloading itunes 10.1

    me and my elder brother are using iphone respectively, the only difference is that, mine is iphone4 and his is iphone.. i just got my iphone4 and when i wanna use the itunes, it stated that iphone4 requires itunes 10.1.. so i was wondering how was it

  • Working with table type any with mapping according to keys

    Hi All , I have table type any with data and I need to fill structure type any according to respective  key and verify that the field is have mapping . i.e. I have a table <lt_itab> and I need to find the specific entry on it according to the key and

  • Biztalk 2013 SFTP Adapter Properties

    Hello All, In Biztalk 2010, some applications use the On Receive After property in the SSHFTP adapter to remove the file after receive. How can this be done in SFTP in the Biztalk 2013.Any help is greatly appreciated. Thanks

  • BPC copy package doesnt consider selections

    Hi all, we work with BPC 7.5 Frontend- & Backendpatch 07 on NetWeaver. We use normaly load_infoprovider package on process chain "/CPMB/LOAD_INFOPROV_UI" to load initial data in our BPC-System. After that loading process we copy the loaded data to ot