System Settings - Command Lines

Help !...
How can I modify System settings (Prefs Panes) via Command Lines/Terminal ?...

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/timed.8. html#//apple_ref/doc/man/8/timed
is this what are you looking for?

Similar Messages

  • Protecting command-line arguments from glob expansion

    Hi. I am writing a java program and I want to pass it a regular expression as a command-line argument. However, when I use certain regular expressions (e.g. [a-z]*), the java command-line interpreter recognizes this a glob expression and replaces it with names of files from the current directory.
    I am running the java interpreter from a Linux bash command line and I am enclosing the regular expression in single quotes (e.g. '[a-z]*') to protect it from the bash interpreter but the java interpreter is still getting to it. I have read other posts which stated that the java interpreter doesn't do this and that it must be the operating system's command-line interpreter that is doing it but I am sure this not the case.
    Can anyone help? Thank you. Eli

    I am running the java interpreter from a Linux bash
    command line and I am enclosing the regular
    expression in single quotes (e.g. '[a-z]*') to
    protect it from the bash interpreter but the java
    interpreter is still getting to it. I have read other
    posts which stated that the java interpreter doesn't
    do this and that it must be the operating system's
    command-line interpreter that is doing it but I am
    sure this not the case.It most certainly is the case that it's the shell, not Java. If the VM receives the String [a-z]* then that will be one the args.
    What may be happening is that java is actually a shell script, not an executable, and that shell script is expanding stuff.
    Do this: $ type java You'll get something like java is /usr/local/bin/java Then do $ file /usr/local/bin/java or whatever comes back. (Or just try to view the file with a text editor.)
    That file might be a shell script that sets some env vars and than calls the real java executable, passing it "$*" or "$@".
    If that's the case, you can try just invoking the executable directly, or modifying that shell script so that it won't do the expansion.
    If that's not the case, then post the exact command you're running and show your main method (includig code in the main that prints out each element of the args parameter).

  • How can I start System Preferences from the command line?

    Hello All,
    I have an issue I'm not quite sure how to solve. I have been tasked within my business environment  with tightening security on a Mac Leopard system and I've been granted Admin Rights to do this on a temporary basis.
    The problem is as follows:
    1) The original Sys Admin that set up this system is gone, no longer available.
    2) He was a Dvorak Keyboard fan and set up the system for a Dvorak Keyboard.
    3) The system actually has a standard Apple keyboard and is marked accordingly, i.e., qwerty (Most Users in the building have stopped using this system altogether - a terrible waste of a good system - even though some of their apps can be run normally (US style qwerty settings). The command line is useless, as is texteditor.app and a few others unless you know Dvorak layout)
    5) When I open System Preferences, the Dvorak keyboard checkbox is grayed out and I cannot change it. There is no lock at the bottom of that particular screen for me to unlock.
    6) Even though I select the US Keyboard at Login, and some apps work accordingly (like MatLab for example) the terminal is borderline useless. I spent over 2 hrs yesterday doing what should have been able to be done in about 30 minutes. I estimate a frustrating and mistake prone additional 8 to 10 hours to do what is normally a a 4 hour job at the command-line.
    7) I do not have the time or desire to re-mark all the keys on the keyboard, particularly since it is not my call to do so, nor do I have the time to re-learn Dvorak touch-typing, and finally I do not want to re-load the entire system. I just want to change the darn keyboard to a standard qwerty keyboard that is somewhat useful in a terminal environment with vi, command line, etc. It's either that or I go mildly insane
    This is frustrating as all get-out. The new Admin logged in and was able to uncheck his Dvorak settings (he is not a UNIX guy, nor is he comfortable om Macs), and we were hoping this was a system wide setting, but No. We re-booted the system, I logged in, still Dvorak, and the checkbox was still grayed out.
    So I figure, short of re-loading the entre system and all the applications necesary, I can either start the Systems Preferences GUI using sudo and hopefully that will change system-wide settings, or I can delete the .AppleSetupDone file and resetup the system (if the keyboard settings are part of the setup) without spending a couple of days reloading everything and re-setting up users, networks, etc.
    Needless to say, I am hoping for the easiest and quickest solution to this extremely frustrating and  aggravating problem.
    Thanks.

    For my situation the following C# code does the job:
        Process.Start(
           @"c:\Program Files\National Instruments\CVI71\cvi.exe",
           @"c:\temp\experiment.c" );
    The file must already exist.

  • 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"}

  • 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

  • Java system properties in the command line...

    Is it possible to know (at run-time) which system properties have been specified in the command line (using the -Dprop=value argument)?
    Actually I would like to avoid people running the JVM and using my program overwriting the user.name property.
    Thanks
    Lionel

    Why use JNI? That's a little overkill. Just use args[] in main.
    public static void main( String args[] ) {
    for( int i = 0; i < args.length; i++ ) {
    if( args.startsWith("-Duser.name=") ) {
    System.out.println( "Well " + args[i].substring("-Duser.name=".length) + " you're not who you say you are!" );
    System.exit(-1);

  • Enable System Wide DEP Support via command line

    Hello all, I am trying to deploy EMET to our organization, but I notice on my test installation on a Windows 7 PC, systemwide DEP was not enabled by default. I figured I can activate this through the command line, but I seem to be running into some trouble.
    It looks like the command line that I want to use is:
    emet_conf --system [--force] SysMitigation=State [SysMitigation=State ...]
    However, I have tried all the different combinations of variables to turn on DEP using this command line, and I keep hitting a brick wall. Has anyone else been able to successfully turn on DEP from the command line?

    Try:
    emet_conf --system DEP=AlwaysOn
    Be careful because if you use BitLocker it will ask the recovery key on next boot (you'll need he --force switch). Also make sure to test that setting because there might be some app-compat issues with applications that do not support DEP.

  • Can not login into command line tool or check out application system

    Hi,
    I'm not able to check out application system. Message error stack is empty. If I try to connect using command line tool to purge the version I get this:
    Repository Command Line Tool: Production on 11-July-03, 18:46
    Release 9.0.2.90.21 - (c) Copyright 2002 Oracle Corporation. All Rights Reserve
    d
    REPCMD> conn repos_manager@msdes01
    Enter password: ******
    [JDK2] No message error
    oracle.repos.services.ReposServiceException
    at oracle.repos.services.connection.RepositoryConnection.setConnection(R
    epositoryConnection.java:613)
    at oracle.repos.services.connection.RepositoryConnection.setConnection(R
    epositoryConnection.java:539)
    at oracle.repos.tools.cmdline.util.CmdLineConnection.setConnection(CmdLi
    neConnection.java:162)
    at oracle.repos.services.connection.RepositoryConnection.<init>(Reposito
    ryConnection.java:333)
    at oracle.repos.tools.cmdline.util.CmdLineConnection.<init>(CmdLineConne
    ction.java:122)
    at oracle.repos.tools.cmdline.ConnectCommand.runConnect(ConnectCommand.j
    ava:197)
    at oracle.repos.tools.cmdline.ConnectCommand.exec(ConnectCommand.java:78
    at oracle.repos.tools.cmdline.BaseCommand.exec2(BaseCommand.java:130)
    at oracle.repos.tools.cmdline.CommandLine.run(CommandLine.java:494)
    REPCMD>
    Any help will be greatly appreciated.
    Thanks,
    Radek

    Radek,
    See Metalink article <Note:178311.1>
    I assume sqlplus and the Repository Object Navigator are working.
    Check the tnsnames.ora file:-
    i.e Change the entry
    DTE817.world = (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ukp-desteam)(PORT = 1521)))
    (CONNECT_DATA = (SID = DTE817)))
    to
    DTE817.world = (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ukp-desteam)(PORT = 1521)))
    (CONNECT_DATA = (SERVICE_NAME = DTE817)))
    David

  • How do you change network settings at the command line when they were set in the

    Ubuntu server setup in a remote location awhile ago, with GUI packages. Currently at
    version 14.04 LTS. There is ssh access to the remote server.
    After a lot of digging thru typical command line configs and not finding the existing
    settings anywhere, it appears the only way to update existing settings -- DNS
    name servers, IP's, etc. -- is using a GUI method, such as gsettings or unity-control-center.
    However,
    gsettings doesn't appear to have those particular items.
    Is
    the only option to use a remote version of Unity .... or just get someone
    on-site and remedy this thru the GUI?
    This topic first appeared in the Spiceworks Community

    Hi and thanks for your reply,
    I used one mini DV Tape for my footage and captured the whole thing into CS6 in one go and so the capture should have been the same throught all of the film. Once I had edited the tape on to the timeline some of the clips are 16.9 widescreen and others are 4.3 standard.
    Help!!!!!

  • Backing up your Linux systems with the command line

    While there are many GUI-based backup and storage tools for Linux users, there are also a few command line-based tools. "Rsync" is one of these tools and, according to Linux.com, it stands for remote sync. With afull tutorial on how to use rsync, Linux.com walks you through how "one of the most used'tools' in the UNIX world [works]."
    Even though it's a simple tool, rsync has quite a few capabilities. You can use rsync "to sync files on two directories on the same PC, on two different systems on the same network, [and] .... on machines thousands of miles apart, over the Internet." In its guide, Linux.com explains each of these processes in detail. While the guide focuses on server backup, each and every command has its place on your personal workstation as well.
    What other tools do you use to back up your Linux systems?
    This topic first appeared in the Spiceworks Community

    try checking relevant environment variables like the CLASSPATH.... a major source of failures in Windows is when in the classpath there is a path containing SPACES.... also enabling some "debug" or "verbose" flag (not sure how to do it) would provide more insight...

  • How to enable Rosetta at the system level using the command line?

    I need to find a way to enable Rosetta at the system level (e.g. all users) using the command line. When Rosetta is enabled, the following entry is created in ~/Library/Preferences/com.apple.LaunchServices (run defaults read com.apple.LaunchServices)
    LSPrefsFatApplications = {
    "com.apple.Safari" = (
    <00000000 009a0003 00010000 c323458f 0000482b 00000000 00000023 0000727b 0000c2b0 8b4e0000 00000920 fffe0000 00000000 0000ffff ffff0001 00040000 0023000e 0016000a 00530061 00660061 00720069 002e0061 00700070 000f0014 00090053 00650072 00760065 00720020 00480044 00120017 4170706c 69636174 696f6e73 2f536166 6172692e 61707000 00130001 2f00ffff 0000>
    Does anyone know what the data shown here is? It doesn't change when Rosetta is turned off and then back on. It also doesn't change between user accounts (e.g. joe's com.apple.LaunchServices.plist has the same value as jane's).
    Will it be possible to run defaults in a way that makes this change work for all users of the computer?

    I am asking about the option to run in non-interactive modeIt cannot be done. Check "Oracle® Applications Maintenance Utilities Release 11i (11.5.10.2)" manual for more details.

  • Force to used command line mouse settings ?!?

    Bravo for not including an option to disable mouse acceleration in the mouse settings. Had to used 2 command lines in the terminal.app to disable the so annoying and so not gaming friendly mouse acceleration... that thing is like dragging the mouse cursor in mud,
    I dont know how mac users can stand it, I guess people get used to it. I am sure its great for paint/draw/... because the mouse slows a lot when you dont move fast, but its totally worthless and sluggish in games.
    And Mac have better interface than windows right? I you want to convert people from the windows world to the mac world, put that setting in... different mouse movement is one of the first thing a windows user will notice when using a mac.
    Message was edited by: herbapou

    Here are the 2 command lines to disable mouse acceleration in case some people want to do it:
    1 - Open application then utility folder.
    2 - Select the terminal app
    3 - type the following lines:
    defaults write .GlobalPreferences com.apple.mouse.scaling -1
    defaults write .GlobalPreferences com.apple.trackpad.scaling -1
    4- Restart

  • How to make system call to execute command line in JAVA?

    Hi,
    I am new in JAVA. How to make system call to execute the following command line in JAVA in LINUX environment.
    rpm -qa jdkIn C programming, use as such:
    system ("rpm -qa jdk");
    How about JAVA?
    Thanks.

    Runtime.getRuntime().exec. But first read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to configure Team explorer 2010 command-line tool in Mac x os. configure shell or system path to include the folder to which (TF client) unzipped archive available.

    How to configure Team explorer 2010 command-line tool in Mac x os.
    Hot to configure shell or system path to include the folder to which (TF client) unzipped archive available. I am new to Mac X OS. Please help.

    Dmitry,
    Thanks for the great writeup!
    I think I've got my universal instant client libraries built correctly.
    I too am using MacBook Pro but I'm getting stuck at building the 32 bit oci8.so
    First problem is my pecl download (ver 1.4.1) did not contain a "configure" file so ./configure failed.
    I used configure from /sw/....... to try to continue.
    Second problem. Using existing configure from /sw/.... I used an appropriate variation of your example command
    (./configure --with-oci8=instantclient,/usr/local/oracle/instantclient_10_2 && make).
    Things look like everything ran OK but The output does NOT include an oci8.so file
    So I guess my question is: Which "configure" should I be using? And if it is not the one on the system under /sw/...
    where would I get it since it doesn't come in the pecl download?

  • Folder created in Windows Explorer not visible in Command Line as SYSTEM user

    Hello everyone,
    We have an odd behavior with an application installation, which I cannot make much sense of.
    We are trying to deploy an application on Windows 8.1 Enterprise x64 which tries to access
    C:\windows\system32\config\systemprofile\Desktop during installation.
    This folder does not exist by default in a Windows 8.1 installation. Hence we am creating this folder using a VBS script manually. The VBS script also launches the application EXE. The setup itself runs under the SYSTEM account (in order to be deployed using
    SCCM).
    When the install script is launched, we can see in the Windows Explorer that the "Desktop" folder is created in the systemprofile directory. However, to the setup running under the system account, this folder is not visible.
    I have verified this by running a command line prompt under the SYSTEM user and navigating to
    C:\windows\system32\config\systemprofile\. Using the "dir" command does not show you a "Desktop" folder under the EXACT same path.
    When we create the Desktop folder from this command prompt, the application installs just fine.
    What are we missing? Any inputs are highly appreciated.

    Hi,
    Might this need to quit the command prompt after the folder creation, then reload it to continue the installation of the software?
    Best regards
    Michael Shao
    TechNet Community Support

Maybe you are looking for