ARD and UNIX commands with outdated MAN pages. (e.g. networksetup)

I may have read it wrongly or referred to the wrong MAN page for "networksetup", but while trying to set proxies, I realise that networkservice for the ethernet port was no longer "Built-in Ethernet" but just Ethernet (without the quotes). Took quite some time to figure that one out. Any ideas if it's just the "new" MacBooks or 10.6.4 listing differently these days? I got my multiple unix commands to work :
networksetup -setwebproxy Ethernet proxy 3128;
networksetup -setwebproxy AirPort proxy 3128;
networksetup -setproxybypassdomains Ethernet 10.0.1.10 *.local 10.0.0.200 10.0.0.0/16;
defaults write com.apple.SoftwareUpdate CatalogURL 'http://10.0.1.10:8088/index-leopard-snowleopard.merged-1.sucatalog';
softwareupdate -i -a

Hi
I found this out a few weeks ago after trying for about 20-30 minutes or so. Won't be the first time manual pages were wrong or out-of-date, nor the last. Depending which OS you're running there are manual pages for utilities that don't exist any more. I remember ktrace disappearing in 10.5 yet the manual page was still available. Completely gone in 10.6.
Tony

Similar Messages

  • Changing user type from ARD and Unix command

    I am now in charge of a Mac network encompassing many different machines, running a mix between Tiger and Leopard. I have them on ARD and would like to batch "demote" every user except my admin account on each machine to standard user privileges. What would be the command I need to send through to do this en masse?

    You could run a dscl command on the 10.5 machines. Maybe run it within a shell script that searches in the /Users folder and returns each folder name (user name). But, again this would only work on the 10.5 machines with the new directory services.

  • How to run Unix command with Pipe ( | )?

    Dear Friends,
    I have to execute the below unix command through java program.
    *ps -ewwo pid,args | grep -E "abc.sh|xyz.jar" | gawk '{ print $1 }' | wc -l*
    My code to execute this command is,
    Runtime run = Runtime.getRuntime();
    File workDir = new File("/root/sat");
    String psCmd = "ps -ewwo pid,args | grep -E \"abc.sh|xyz.jar \" | gawk '{ print $1 }' | wc -l";
    Process process = run.exec(psCmd, null, workDir);
              String line;
              int i = process.waitFor() ;
              if(i == 0) {
              BufferedReader buf = new BufferedReader( new InputStreamReader( process.getInputStream() ) ) ;
              while ( ( line = buf.readLine() ) != null )
                   System.out.println("Line - ["+line+"]") ;
              } else {
                   BufferedReader stdErr = new BufferedReader(new InputStreamReader(process.getErrorStream()));
                   // read the output from the command
                   while ((line = stdErr.readLine()) != null) {
                   System.out.println(line);
                   }When i execute this command, i'm getting output as,
    ERROR: Garbage option.
    When i analyse the above error, i found that, the PIPE ( | ) command is not supported through java.
    Could anyone please help me how to execute the above unix command (with | ) in java?
    Thanks in advance,
    Sathish

    The pipe has to be interpreted by a shell so you need
    String[] psCmd =
        "sh",
        "-c"
        "ps -ewwo pid,args | grep -E \"abc.sh|xyz.jar \" | gawk '{ print $1 }' | wc -l"
    Process process = run.exec(psCmd, null, workDir);You should also read, re-read and then implement the recommendations in the 4 sections of http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html .

  • How to set up an address book and make labels with numbers or pages?

    How do you set up an address book and make labels with numbers or pages?

    Create an Apple ID - My Apple ID

  • Execute an Unix command with pipe

    Hi,
    How do I execute a unix command with pipe from JAVA runTime.exec(cmd)? for example: "ls -l |wc -l"
    should return number of files. However, there is no output result. If I use "ls -l" as command argument, it gives file list.
    Here is my program:
    public static void main(String[] args) {
    try {
    Runtime runCmd = Runtime.getRuntime();
    System.out.println("sys testing");
    Process retProc = runCmd.exec(args[0]);
    BufferedReader bread = new BufferedReader
    (new InputStreamReader(retProc.getInputStream()) );
    String out = bread.readLine();
    while ( out != null ) {
    System.out.println(out);
    out = bread.readLine();
    DataOutputStream outSt = new DataOutputStream(retProc.getOutputStream() );
    outSt.writeChars(args[1]);
    outSt.flush();
    } catch (Exception ie) {
    ie.printStackTrace();
    Thanks in advance,
    Jeff

    I got my answer !
    No need to reply

  • Help with Servlet and Unix Commands

    Hello,
    I want to write a Java Servlet that runs some Unix commands on the system..
    Any guidelines? A really small and simple java servlet example that runs "ls -la" for example and outputs the results would be great...
    Any help would be greatly appreciated :)
    Thanks in advance

    You'll want to use Runtime.exec() to run Unix commands.
    Why can't you just get this out of java.io.File.listFiles()? What's ls really doing for you here?
    If you insist on using Runtime.exec(), you'll want to read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    MOD

  • Invoking Unix command with java stored procedure

    Hi,
    I have a perfectly working environment and now I am trying to replicate the same in another server. I have a java stored procedure which invokes the Unix command using java Runtime.exec() in my code named "run". I am sure that the code is called and the java class run is resolved in oracle as I could see that in dba_java_resolvers dictionary. But I am not sure whether the function in java is called or whether a exception is thrown. how to identify this? Could there be any thing to do with settings in oracle side? please help me.
    Thanks in advance,
    Marutha

    Hi,
    Do you get any output while running the code?
    I'm testing similar solution and if there are any errors or Oracle can't execute the program due to permissions or other issues the error information will be displayed. Also in the Java class itself you need to catch exceptions and print stack trace to standard output.
    declare
    x number;
    begin
    dbms_output.enable(1000000);
    dbms_java.set_output(1000000);
    x:=system_command.run_command('testconnect.sh');
    dbms_output.put_line('Returned value='||x);
    exception
    when others then dbms_output.put_line('Sql error='||substr(sqlerrm,1,250));
    end;
    <system_command.run_command> - replace with a call to your java stored procedure.

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • Softwareupdate -l and proxy and UNIX command

    When I run softwareupdate -l I'm prompted to login to our company proxy server, which I expect. Is there a way to send my username and password along with the software update command?

    If you're using Workgroup Manager, the procedure is documented in Chapter 7 of the System Imaging and Software Update Administration section of the Mac OS X 10.4 Server documentation.
    If not, another poster came up with this solution (I haven't tested it, so I can't say of my own knowledge that this is correct):
    Create the following as a text file, save it as com.apple.SoftwareUpdate.plist and then copy it to /Library/Managed Preferences/root/on each workstation. Replace the <<your server here>> with the address of your actual software update server.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CatalogURL</key>
    <string>http://<<your server here>>:8088/</string>
    </dict>
    </plist>
    Hope it works for you.

  • How could I synchronize Mail on iMac and iPhone 4s with the webmail Page?

    Hi There,
    I have a Yahoo e-mail account and i would like to synchronize it with Mail on my iMac (OS Mountain Lion) and iPhone 4s with the webpage of yahoo.com.
    In fact if i delete a massage on the webmail page i will find it on my iMac.
    The synchronization works well between the webpage and the iPhone, but not with the iMac.
    Any suggestion?
    thanks
    Orest

    Hey Yusef 89,
    Thanks for the question. With iOS 7, you can delete a song by doing the following:
    Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    via page 62 of the iPhone User Guide for iOS 7
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Please note that if you have "Show All Music" enabled in Settings > iTunes & App Store, the above will delete the song from your device, but it will still appear available (with a cloud symbol to re-download).
    Thanks,
    Matt M.

  • Forms and UNIX Commands

    My question is: What is the command that is needed to send a UNIX command from a form generated using the Forms editor? I am trying to create a print button that when pushed in Oracle will generate a lpr command in UNIX and print the window. Thanks.

    It is not as simple as using one command.
    What I have previously done is set up an external procedure (documented in Oracle manuals) and call this external procedure from your form.
    This external procedure must be a C program which will reside on your unix machine which can then call a unix script or whatever.
    I would make sure that your external procedure returns a success or failure flag so that you know if the unix script run successfully (ie the print worked).
    The hardest part to get this working is setting up the external stuff and listener etc so at first, just pass a couple of parameters to write to a unix file first and then when you can call this withouth any problems ..... change it to print.
    Good luck

  • Bug with Solaris man page on dlsym

    I hope someone at Sun working on Solaris is reading this. There are bugs in the Solaris 10 man page on dlsym - there are a couple of places that says "see the .". Apparently soemthing is missing. My version of man pages is "Last change: 26 Sep 2005".

    The prototype of pthread_create() is correct on Solaris 10 man page (SunOS 5.10 Last change: 23 Mar 2005):
    int pthread_create(pthread_t *restrict   thread,   const
    pthread_attr_t *restrict         attr,         void
    *(*start_routine)(void*), void *restrict arg);
    But the prototype of pthread_cleanup_push() is correct on Solaris 10 man page (SunOS 5.10 Last change: 4 Oct 2005) is incorrect:
    void pthread_cleanup_push(void (*handler, void *),void *arg);
    I guess Sun simply has to check all the man pages of the pthread functions carefully one by one to make sure this error is fixed.

  • HELP! retrieving and displaying data with JavaBean but Page is Blank!!

    Please help. I am trying to display data for user by appending the userid as parameter in the URL but I get a blank page and nothing displays in my jsp page.
    //info.java
    package database;
    public class Info{
    private String user;
    public Info(){
    public void setuser(String user)
        this.user = user;
      public String getuser()
        return user;
       public Collection getInfo() throws NamingException, SQLException {
                    ArrayList list = new ArrayList();
                    InitialContext initCtx = new InitialContext();
                    //OTHER CONNECTION STATEMENTS
    String sql = "SELECT ADDR FROM TABLENAME WHERE user=' ?'";
                    try {
                            conn = ds.getConnection();
    pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, this.user);
    rs = pstmt.executeQuery();
    while(rs.next()) {
            InfoBean tsel = new InfoBean(rs.getString("addr"), this.user);
    list.add(tsel);
          //catch SQLexception
    } finally {
    try{
               if (initCtx != null)  initCtx.close();
            if (rs != null)  rs.close();
            if (pstmt != null) pstmt.close();
            if (conn != null) conn.close();
    //catch SQLException statment
          return list;
    //InfoBean.java
    package database;
    public class infoBean
    private String user;
    private String addr;
    public infoBean(){
    public infoBean(String addr, String user)
    this.user = user;
    this.addr = addr;
    public String getaddr()
    return addr;
    public String getuser(){
    return user;
    public void setaddr(String addr){
    this.addr = addr;
    public void setuser(String user){
    this.user = user;
    //index.jsp
    <jsp:useBean id="row" class="database.Info" scope="request">
    <jsp:setProperty name="row" property="user" param="user"/>
    </jsp:useBean>
    <c:if test=${!empty param.user}">
    <c:forEach items="${row.info}" var="t1">
    <td>${t1.addr}</td<>
    </c:forEach>
    </c:if>

    OK, before we all go rummaging through your code--does your SQL statement return values when you execute it as a stand alone adhoc query?

  • Running CS3Clean via ARD send unix command?

    Anyone know the proper commands to run this via ARD? Since the two dont play well together we need to uninstall CS3 for CS4 in remote cities.
    I've tried:
    sudo python /MacCS3Clean/CS3Clean.py
    I am not UNIX guru by any means but I can back engineer it.  This command runs it but it needs to add the additional information asked when you run the script manually or it hangs.

    Patrick Seibert wrote:
    I am basically in charge of testing for this migration. All of my test machines have produced license issues either for CS3 or CS4 or both. In 90% of cases, installing CS4 on machines with current CS3 breaks the CS3 License.  Adobe tech support told me they do not coexist becuase they overwrite the each others Flexnet licensing system files. We are not using the DVD's to install this either but using Casper to deply via network and install the package. So either your retail installer is different Adobe tech lied to me or you are using a pirated version with flexnet ripped out.
    I am using retail installs. I've never had a problem with multiple versions ever as each version is its own application. I have never used Flexnet Licensing so I can't answer that. All I know is everything works and I have no conflicts.

  • ARD and controlling box with dual monitors!

    My workstation at home has dual monitors,
    when I connect to it with ARD both monitors are displayed, which means the window looks very wide, small and funny.
    You can hardly see anything either.
    (they are both highres)
    I only need to see one monitor when I connect with ARD. Is there anyway I can get that working?

    You can set ARD to view all screens at once or at real screen resolution. Click the 'Fit Screen in Window' icon (looks like an X with arrow points and a diamond in the middle).
    I have had some issues with my Multi-screen machines colors displaying oddly while in 'Fit Screen in Window' mode, but turning it off fixes the issue and lets you auto scroll around like virtual Desktop.
    Hope that helps.

Maybe you are looking for