Changing proxy to PAC file using command line tool ?

I've asked this before but have not had much luck getting an easy fix.
I need to change a large number of machines over to using a pac file instead of the current settings for secure and web proxys.
It's not possible using 10.4 CLI command networksetup but I'm wondering if anyone may have another way of doing this ? Possibly a script or something ???
Mitch

The command line tools with ARD do not appear to have any syntax for specifying a PAC file URL nor the syntax to specify Proxies use a PAC file.
I suggest you look at /Library/Preferences/SystemConfiguration/preferences.plist file. This is where your PAC file settings will be saved. You may be able to programatically alter the file using "defaults write" or some other tool.
Hope this helps!
bill
  Mac OS X (10.4.10)   1 GHz Powerbook G4

Similar Messages

  • Compiling FLA and AS files to SWF file using command line

    I need to encorporate the .as sources and .fla file, into my
    build environment, to compile the SWF file.
    Right I have to Open Flash 8 to perform this and copy the SWF
    created through the compilation process.
    Compiling FLA and AS files to SWF file using command line is
    my main purpose. If there such a utility there, does it exist for
    Linux and Windows.

    Try
    Flash
    Command or
    Flash
    Shell Extension
    We use an enhanced version of Flash Command internally, of
    which we fixed the bug of Mike Chamber's Flash Command which cannot
    be run in .NEt 2.0 and added some other functionality. Once we are
    comfortable with it, we will release it to the public.

  • How can I create a NetBoot image using command line tools?

    Is it possible to create a NetBoot image entirely using command line tools?
    (That is, without using the SystemImageUtility)
    If so, are there reasonable instructions posted somewhere?
    I don't believe I can use SystemImageUtility with my current setup,
    but I would be happy to hear how I could:
    I have a set of Xserve clusternodes but without optical drives or video cards.
    One node acts as the head, running DHCP, DNS, OpenDirectory, Xgrid.
    They are wired to a gigabit switch.
    I have a PowerBook connected on the subnet which has ServerAdmin Tools installed.
    I don't think when I run SystemImageUtility on my PowerBook that I can successfully image one of the clusternodes disks over the network.
    I have tried to start one node in target(Firewire) mode, connect it via Firewire
    to the head node, and run hdiutil from the head node to make a complete disk image of the clusternode's drive.
    But a NetBoot image requires the whole nbi file, right?
    Could I then use copy this disk image to my PowerBook and use SystemImageUtility on my PowerBook to create a NetBoot image from it?
    I really have tried to read the PDFs, but I found the section on System Imaging in the Command Line Reference rather unhelpful.
    Thanks for anyones help.
    dmaus
      Mac OS X (10.4.4)  

    To create a NetBoot image, you could just put the cluster node in target mode and attach it to your PowerBook. Then use SIU to create the NetBoot image.
    If you're trying to create a backup image of the disk, use hdiutil, or put in in target mode and create the image with Disk Utility.

  • GUI Applications unable to use command line tools

    Hi All-
    I've searched, but I can't find a thread about this one, so...
    On OS 10.4.5:
    Whenever I use a GUI app that wants to use a command line tool (e.g. curl, df, java), the app fails giving an error message to the effect of "unable to find curl" or the like. It is as if the GUI cannot find my unix $PATH.
    Examples:
    -- Eclipse refuses to launch, because it appears to use "java xxxxxxx" to launch.
    -- Automator fails to run certain Safari actions because they use curl to navigate web pages.
    -- Carbon Copy Cloner fails to launch, because it can't find a tool (df, IIRC) to read drive/volume info
    Possibly relevant details:
    -- I can use the tool in question from the command line, so they are present, and in my $PATH, but the GUI can't find them.
    -- I recently moved from an old G4 to a relatively new G5, and had issues migrating files, so I eventually just copied my entire home directory from the old machine to the new, replacing the freshly created one on the new machine. I feel like that missed something that tells the GUI where your $PATH is, or some other link between GUI and command line.
    -- I created a new user, and that user does not experience the same troubles. This adds to my suspicion that it is account/PATH related.
    Any help anyone can give it greatly appreciated.
    -p
    PM G5 dual 2.0   Mac OS X (10.4.5)  

    Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
    In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
    If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
    Whatever hapens, tell us more...

  • How to create and use library JAR files with command-line tools?

    Development Tools -> General Questions:
    I am trying to figure out how to put utility classes into JAR files and then compile and run applications against those JAR files using the command-line javac, jar, and java tools. I am using jdk1.7.0_17 on Debian GNU/Linux 6.0.7.
    I have posted a simple example with one utility class, one console application class, and a Makefile:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130520-2134.tar.gz
    Here is a console session:
    2013-05-20 21:39:01 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-20 21:39:12 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/hello/HelloConsole.java
    package com.example.hello;
    import static com.example.util.Hello.hello;
    public class HelloConsole {
        public static void main(String [] args) {
         hello("world!");
    2013-05-20 21:39:21 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -f hello
    find . -name '*.class' -delete
    javac src/com/example/util/Hello.java
    javac -cp src src/com/example/hello/HelloConsole.java
    echo "java -cp src com.example.hello.HelloConsole" > hello
    chmod +x hello
    2013-05-20 21:39:28 dpchrist@desktop ~/sandbox/java/jar
    $ ./hello
    hello, world!I believe I am looking for:
    1. Command-line invocation of "jar" to put the utility class bytecode file (Hello.class) into a JAR?
    2. Command-line invocation of "javac" to compile the application (HelloConsole.java) against the JAR file?
    3. Command-line invocation of "java" to run the application (HelloConsole.class) against the JAR file?
    I already know how t compile the utility class file.
    Any suggestions?
    TIA,
    David

    I finally figured it out:
    1. All name spaces must match -- identifiers, packages, file system, JAR contents, etc..
    2. Tools must be invoked from specific working directories with specific option arguments, all according to the project name space.
    My key discovery was that if the code says
    import com.example.util.Hello;then the JAR must contain
    com/example/util/Hello.classand I must invoke the compiler and interpreter with an -classpath argument that is the full path to the JAR file
    -classpath ext/com/example/util.jarThe code is here:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130525-1301.tar.gz
    Here is a console session that demonstrates building and running the code two ways:
    1. Compiling the utility class into bytecode, compiling the application class against the utility bytecode, and running the application bytecode against the utility bytecode.
    2. Putting the (previously compiled) utility bytecode into a JAR and running the application bytecode against the JAR. (Note that recompiling the application against the JAR was unnecessary.)
    (If you don't know Make, understand that the working directory is reset to the initial working directory prior to each and every command issued by Make):
    2013-05-25 14:02:47 dpchrist@desktop ~/sandbox/java/jar
    $ cat apps/com/example/hello/Console.java
    package com.example.hello;
    import com.example.util.Hello;
    public class Console {
        public static void main(String [] args) {
         Hello.hello("world!");
    2013-05-25 14:02:55 dpchrist@desktop ~/sandbox/java/jar
    $ cat libs/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-25 14:03:03 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -rf bin ext obj
    mkdir obj
    cd libs; javac -d ../obj com/example/util/Hello.java
    mkdir bin
    cd apps; javac -d ../bin -cp ../obj com/example/hello/Console.java
    cd bin; java -cp .:../obj com.example.hello.Console
    hello, world!
    mkdir -p ext/com/example
    cd obj; jar cvf ../ext/com/example/util.jar com/example/util/Hello.class
    added manifest
    adding: com/example/util/Hello.class(in = 566) (out= 357)(deflated 36%)
    cd bin; java -cp .:../ext/com/example/util.jar com.example.hello.Console
    hello, world!
    2013-05-25 14:03:11 dpchrist@desktop ~/sandbox/java/jar
    $ tree -I CVS .
    |-- Makefile
    |-- apps
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.java
    |-- bin
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.class
    |-- ext
    |   `-- com
    |       `-- example
    |           `-- util.jar
    |-- libs
    |   `-- com
    |       `-- example
    |           `-- util
    |               `-- Hello.java
    `-- obj
        `-- com
            `-- example
                `-- util
                    `-- Hello.class
    19 directories, 6 filesHTH,
    David

  • Exporting Discoverer to Excel file - using command line ....

    Hi Everyone,
    The discoverer report has the parameter in the title.
    When I click on the Xcel button in Disco., the title with parm gets included in spreadsheet
    -but-
    I really want to run the command line to send Disco. output to Excel.
    The title line is not there!!!! (but column headings with data are there)
    I really need the parm value to be included in the Excel header. Any ideas, pls? tx, Sandra
    command line:
    C:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect testuser/tstuser123@odstest /opendb "testuser.ToWeb_Elective_Tally.DIS" /sheet ALL /parameter parm_AcademicPeriod "200910, 200920" /export XLS "C:\ARG_99_Scripts\ARG_99_DailyElectives_script\ToWeb_Elective_Tally.xls" /batch

    Hi,
    You could try using /export HTML but keep the file type as .xls. Then you will open the HTML file in excel and most of the formatting and title will be preserved.
    However, you will not be able to use /sheet ALL with the /export HTML option.
    Rod West

  • Using Command Line Tool for Linux

    I have to use the command lines of Linux for SCM commands(like repcmd, set workarea, checkin etc...)
    should I have to install something?
    I have documentation for using the oracle repository command line Toll for Windows and Unix, but I didn't found anything about using the oracle repository command line Toll for Linux.

    JDeveloper runs excellent on Linux and is supposed to be able to use the repository, but that's a GUI...

  • How can i Import a BIAR file by using Command Line Tool?

    Dear All,
    I wrote a properties file for import a biar file. my properties file is below:
    action=importXML
    exportBiarLocation=D:\Tamzid\BIAR\Test_Import.biar
    userName=Administrator
    password=
    authentication=secEnterprise
    CMS=bldhkbotest01:6400
    exportDependencies=false
    includeSecurity=true
    exportQuery=select * from ci_appobjects
    I have run the above properties file from cmd by the following way:
    C:\Program Files\Business Objects\common\4.0\java\lib>java -jar biarengine.jar D:\Tamzid\BIAR\MyExport.properties
    But it gives an error :
    Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    though my logon information is correct.
    Please any body have any idea?
    OS: Windows 2003 server
    BO version: XI 3.1
    Best Regards,
    Tamzid.

    Dear All,
    My problem is solved by the following code:
    exportBiarLocation=D:\ExportMyFile.biar
    action=exportXML
    userName=Administrator
    password=bl123456
    CMS=bldhkbo02:6400
    authentication=secEnterprise
    exportQuery=select * from ci_appobjects
    Save the above proterties file in a specific path.
    Run the above properties file by the following cmd command:
    C:\Program Files\Business Objects\common\4.0\java\lib>java -jar biarengine.jar ....\MyExport.properties
    Regards,
    Tamzidul Amin.

  • How to specify xml file to populate form fields in the PDF file via command line?

    Hi,
    I would like to specify xml data file to populate my pdf file using command line.
    The form was Reader extended.
    I've tried the following syntax :
    Acrobat.exe /A "zoom=100" "C:\example.pdf"#xml="C:\example.xml" but got an acrobat error: "the file name, directory name or volume label syntax is incorrect".
    Where am I wrong?
    Thanks!

    >If I understand correctly you propose something like this
    Something like, yes.
    >
    >Acrobat.exe /A "zoom=100" "xml=C:\example.xml" ....
    Certainly, neither will work. /A is followed by a single quoted
    string. There must be some separator, but I don't know what it needs
    to be (as I was alluding to in my first reply).
    To see if there is any hope, just try without the zoom= completely. In
    any case you can set the zoom in the document properties.
    Aandi Inston

  • Use third party framework in Command Line Tool

    Hi.  I'm writing a small application for a friend of mine, and basically what it does is lets you put in some information, and then creates and stores that information in an Excel file.  However, all of my research suggests that C++ doesn't work nicely with Excel files, so I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.  My only problem is getting my Command Line Tool to use this framework.  I'm not even sure if it is possible, but if someone could help me out, I would really appreciate it!
    P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.

    That last one is an excellent punch line!
    >I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.
    That should be coming with a manual. Some frameworks can be included in their entirety into the program you are writing, where for others you can only reference to it and you have to distribute the framework file(s) along with your own application. This doesn't sound like one, but an external framework may only be meant for GUI functions, in which case you cannot write a Terminal-only program.
    But here comes the kicker:
    >P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.
    It's possible for you to *write* the program but not to compile it. (Actually, you *can* compile it but then you have a Mac Terminal program, not a Windows one.) Even if you know what you are doing and are happy with sending over the source code, together with instructions on how to compile it under Windows, this implies you would only and *exclusively* use functions that are available in compilers for Windows. That rules out your External framework idea -- unless there is a Windows version available as well (do check for that; if this is an Open Source project, there very well may be.) But you are still programming "blind", and if you get it to work on your Mac (and nevermind the problem with the framework being external, because you won't need to send it over anyway) but your friend canNOT make it work under Windows, you won't know if it's because the Windows version of the compiler doesn't accept the external library, or it's the wrong version, or you accidentally used a Mac-only feature anyway, or the friend does not know how to compile ... et cetera, et cetera.
    Best advise is to install VirtualBox (or something similar) on your system, test all you want with XCode but then, after you got it to work, carry over the project into Windows and start a-new.

  • How to duplicate a target and add resources in xcode using command line?

    I am trying to use command line tools to create, add resources, build, archive and export to ipa in xcode. I could do the Build, Archive and Exporting to IPA through the command line tools(xcodebuild). But I also wanted to duplicate the target in the same project,add a new Info.plist to the duplicated target resource through command line itself. How to do it? I could not find any valuable answers by Googling. I could not find any proper documentation also in Apple Sites.
    Is there any tools that can be used to perform these? I don't want to use the UI. Please, help me out.

    The Mac App Store is not appropriate for command line tools. You can use any language you want.

  • 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

  • BIAR Command line tool Properties

    hi,
    what does
      action = exportXML  and action = importXML means.
    where we should use
       exportBiarLocation and importBiarLocation
    plz explain.
    Thanks in advance!

    Hello,
    biarengine.jar supports 2 functionalities:
    1) Importing a BIAR file using command-line
    2) Exporting a BIAR file using command-line
    To import a BIAR file, you would specify:
    action=importXML
    importBiarLocation=C:/path/to/biarfile.biar
    To export a BIAR file, you would specify:
    action=importXML
    importBiarLocation=C:/path/to/biarfile.biar
    This is further documented in the XI3.1 Administrators Guide:
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bip_admin_en.pdf
    -Brian

  • Read in file name + path using command line arguments

    Hi guys,
    I am trying to use command line arguments to read in the name of two files. The code below works as long as the files are on the class path.
    public class cmdLineArguments {
         public static void main(String[] args) {
              String xmlFile1 = args[0];
                    String xmlFile2 = args[1];
              System.out.println ("\nXmlFile1: " + args[0] + "\nXmlFile2: " + args[1]);
    }I would like to be able to read files that are not on the class path as well by entering their full path along with their names.
    In other words, It works if I type:
    C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs file1.xml file2.xmlbut not if I type:
    C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlWould anyone please explain how I can edit the code to make it work? I guess I could take them both as a String, modify them manually (add a \ to it etc) but is there an easier way to do it? Even a reference to a tutorial, article etc about this would be very much appreciated.
    Also, any idea why a code would compile and run fine in Eclipse but would create an error from command line?
    Thanks a lot.

    You need to learn about cmd.exe which is used to process the command line. The arguments passed to any program is the command line split at white space so your command line arguments of
    c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlis turned into an array of
    "c:\Documents", "and", "Settings\user\desktop\file1.xml", "c:\Documents", "and", "Settings\user\desktop\file2.xml"In other words instead of 2 arguments you actually have 6.
    To get round this the file names need to be quoted
    java cmdLineArgs "c:\Documents and Settings\user\desktop\file1.xml" "c:\Documents and Settings\user\desktop\file2.xml"

  • How to use command line with acrobat to extract page(s) from pdf file?

    I have adobe acrobat, and have a pdf file with over 500 pages. I need to extract small chunks of pages from it as seperate pdf files. I was hoping I could use command line interface to do this faster.
    Something like:
    acrobat src des start end
    so for example
    adobe file.pdf my_folder 3 5
    Is this possible? There are many chunks and I don't want to manually do it for every chunk. Command line would be much easier...
    Thanks

    I can't find any programs... sorry.
    Can you create one for me please.
    It should at least have these 5 arguments: (well the first one is not neccessary since were not using acrobat anymore...)
    [program] [src path/src file] [destination path/file name] [start page (inclusive)] [end page (inclusive)]
    for example:
    acrobat ./my_file.pdf ./my_folder/chunk1.pdf 3 5
    if start page == end page, then it only extracts that one page.
    So this way I can just stack these comands on a .bat file or something (maybe like 100 commands), then run the bat file, and it will create all the files.
    Thanks for doing this, it is appreciated.

Maybe you are looking for

  • Can ibooks 2.01 run under iOS 5.1?, or am I forced to use ibooks 2.1??

    I learned the hard way about ibooks bugs and ios with the last update. Since I can't downgrade, I wont upgrade till I know I can still use ibooks 2.01 under iOS 5.1. Thanks.

  • File Size Grows Upon Insert

    My image file sizes grow enormously when I insert them. One jpg (a still) is 9.87 KB but when I insert it in DW the readout shows it as adding 120K! Another jpg (banner) starts at 20K but when inserted it's 70K. Is it related to using layers? I'm jus

  • Can't hear phone calls, can't open messaging app.  I've tried everything.

    Okay, so every time I receive a phone call, I can't hear them very loudly and my volume is at it's highest.  When I make a call, it doesn't even ring.  Last, but not least, when I try to open my messaging app, my phone freezes and then the app closes

  • My Ipod says version not supported when attaching to my Honda

    I just purchased a Honda Insight and hooked my iPod up to the USB port and it was working fine.  I brought my ipod inside and hooked it up to my macbook added several songs and may have upgraded the software.  Now when I hook it up to the USB in the

  • Changing cloud services auto scale weekends

    hi i want to change the default weekends in the azure auto scale ( our weekend is from Friday to Saturday ). can it be done using the portal or in any other way ?