SPC running on linux

I am able to properly use the SPC tool in windows though when I try to run the tool in unbuntu 9.04 it fails. thechet@thechet-desktop:~/Desktop/SPA525$ sh ./spa525g-sip-7-2-3-spc-linux-i386.bin spc --sample-profile config.xml ./spa525g-sip-7-2-3-spc-linux-i386.bin: 1: Syntax error: "(" unexpected thechet@thechet-desktop:~/Desktop/SPA525$ Does anyone have the correct syntax to invoke this tool for linux?

Hi thechet69,
It works for me on Ubuntu 9.04 Jaunty Jackalope.
Here's what I did:
patrick@tokoloshe-blade:~/Downloads/spa525g_SPC$ chmod 544 spa525g-sip-7-2-3-spc-linux-i386.bin
patrick@tokoloshe-blade:~/Downloads/spa525g_SPC$ ./spa525g-sip-7-2-3-spc-linux-i386.bin
  Sipura Profile Compiler -- SPA525G-SIP Revision 7.2.3
  Copyright (c) 2006 Cisco-Linksys.  All rights reserved.
  usage 1: spc [opt_args] source_text_file target_binary_file
  usage 2: spc --sample-profile output_filename
  usage 3: spc --sample-xml [--va] output_filename
  usage 4: spc --sample-xml-compact [--va] output_filename
  usage 5: spc --xml-schema output_filename
    --cmd-file file_name            Reads additional arguments from file
    --target hex_string             12 hex-digits MAC Address of target
    --scramble ascii_string         Plain ASCII obfuscation string
    --rc4                           Alleged RC4 256 Stream Cipher
    --aes                           AES Block Cipher (CBC mode)
    --ascii-key  ascii_string       Plain ASCII encryption password
    --hex-key  hex_string           Binary encryption key
    --quiet                         Do not print status messages
    --log file_name                 Log status messages to file
  spc profile syntax:  parName [ '!' | '?' ] [ "parValue" ] ';'
patrick@tokoloshe-blade:~/Downloads/spa525g_SPC$ ./spa525g-sip-7-2-3-spc-linux-i386.bin --sample-xml spa525G_template.xml
  spc: generated SPA525G-SIP sample configuration spa525G_template.xml
patrick@tokoloshe-blade:~/Downloads/spa525g_SPC$ ./spa525g-sip-7-2-3-spc-linux-i386.bin --sample-profile spa525G_profile.txt
  spc: generated SPA525G-SIP sample configuration spa525G_profile.txt
patrick@tokoloshe-blade:~/Downloads/spa525g_SPC$
I've attached the generated files for  you.
Regards,
Patrick

Similar Messages

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

  • Need to run RemoteDesktop from JSP file, WebServer Running in Linux.

    Hi All,
    i want to run a RemoteDesktop(.RDP) from a JSP page, webserver is running on Linux.
    Like i am having abc.rdp file, when i am invoking this file from the jsp, it is displaying the content of the abc.rdp file.
    instead of that i am using MIME, following is the snippet i am using.....
    String filepath=path+objId+".rdp";
    FileInputStream fis = new FileInputStream(filepath);
    System.out.println("     filepath               "+filepath);
    byte[] bytes = new byte[fis.available()];
    response.setContentLength(bytes.length);
    fis.read(bytes,0,bytes.length);
    javax.servlet.ServletOutputStream Pout = response.getOutputStream();
    //String string = new String(bytes);
    //Pout.println(string);
    Pout.println(bytes);
    Pout.flush();
    Pout.close();
    fis.close();
    the above code is asking me to save the .rdp file. But i want to run the .rdp file directly without asking me saving option.
    Your Views and Suggestions are valuble to me....
    Thanks
    Chiranjeevi.

    you need to configure the web browser to associate that particular file type with the appropriate action

  • How do I install the latest version of Firefox on my Acer Aspire One running Linpus Linux Lite?

    I have an Acer Aspire One Netbook. It runs "Linpus Linux Lite" OS. It came with Forefox 2 installed. I have searched the web for advice on how to upgrade to Firefox 3.5.
    I had a go at it, I have now lost Firefox 2, but failed to install a later version.
    Can someone tell me how t0 get either Firefox 2 back, or better still, unstall Firefox 3.5?
    I should say that I'm a novice so I need really basic instructions.
    If this plea for help doesn't work, I'll take my netbook to my local PC chap & ask for Windows to be installed on it!
    Thanks.

    See here:
    http://linuxforums.org.uk/netbooks/install-firefox-5-on-an-acer-aspire-one-running-linpus-lite-linux/
    for instructions on how to install Firefox 5 on an Acer Aspire One running Linpus Lite Linux.

  • IO no longer works when running on Linux

    Hi everyone,
    I have some code which was originally developed and running on a Windows environment, now I am trying to get it working under Linux. Some of the JSP file which output data as text files do not display correctly, I assume that if I change the JSP files to the UNIX newline characters this will fix the problem?
    The other issue is that there is some code which saves data to a file, the directory given may be local or on a network. It worked fine under Windows, but throws an Exception below when running under Linux even when using the UNIX like path structure (/machinename/dir/dir/filename). The code is below:
              byte[] data = /*method that gets the data to save*/;
              String fileDir = this.addExtraBackslashes(config.getOutputDirectory()); // getOutputDirectory sets the directory String
              String filePath = fileDir + fileName; // String fileName is set elsewhere in this code
              FileOutputStream fos = null;
              try {
                   fos = new FileOutputStream(filePath);
                   fos.write(data);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   throw new Exception("Error saving file:-" + filePath +", please check the output path in the configuration", e);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   throw new Exception("Error saving file:-" + filePath+", please check the output path in the configuration", e);
              } finally {
                   if (fos != null) {
                        try {
                             fos.close();
                        } catch (IOException e) {
                             log.warn("error closing file stream:" + filePath);
         private String addExtraBackslashes(String s) {
              StringBuffer sbRet = new StringBuffer();
              for (int i = 0;i < s.length();i++) {
                   char ch = s.charAt(i);
                   switch (ch) {
                        case '\\':
                             sbRet.append('\\');
                             sbRet.append(ch);
                             break;
                        default:
                             sbRet.append(ch);
                             break;
              return sbRet.toString();
         }Anyone have any ideas of what could be the problem and possible solutions?
    Thanks,

    People would have more of an idea if you posted the full exception text and a clue as to which line it was thrown from.
    Also, WTF is with all the addExtraBackslashes stuff? It looks like it's going through and doubling-up each \ character. I'm guessing this won't do anything on Linux if you've configured your paths to use / instead, but even so, what did it do on Windows?!
    And what are the values of fileDir and filePath? Does fileDir end in a /? Instead of having to worry about that, you could use new File(fileDir, filePath) to construct an abstract path and pass that to your FileOutputStream.

  • Problem with downloading a PDF file from a webserver run on Linux

    Hi,
    I've written a simple functionality that manages file attachments.
    Everything works fine (attaching, downloading, deleting) when the webserver runs on Windows.
    However when I deployed the code to the Resin webserver run on Linux and use the Win browser to connect to the app, the downloading of PDF file doesn't work (uploading and downloading of txt, doc, xls, jpg files is OK).
    The downloaded PDF file is almost twice as big as original (~28KB when original is ~12KB) and it can't be open.
    I guess it is the problem of writing to the output stream of HttpServletResponse but I can't localize the problem.
    Here is the code I use for downloading file:
    private boolean downloadFile(HttpServletResponse response, String filePath,
                   String originalFilename) {
         File file = new File(filePath);
         String contentType = URLConnection
                   .guessContentTypeFromName(originalFilename);
         // If the content type is unknown set the default value.
         if (contentType == null) {
              contentType = "application/octet-stream";
         BufferedInputStream input = null;
         BufferedOutputStream output = null;
         try {
              input = new BufferedInputStream(new FileInputStream(file));
              int contentLength = input.available();
              response.reset();
              response.setContentLength(contentLength);
              response.setContentType(contentType);
              response.setHeader("Content-disposition", "attachment; 
                           filename=\""+ originalFilename + "\"");
                output = new BufferedOutputStream(response.getOutputStream());
              int bufSize = 10000;
              byte[] buf = new byte[bufSize];
              int bytesNo = 0;               
              while ((bytesNo = input.read(buf, 0, bufSize)) != -1) {
                   output.write(buf, 0, bytesNo);
              output.flush();
              input.close();
              output.close();
         } catch (IOException e) {
              log.debug(e.getMessage());
              e.printStackTrace();
    }Can you point any problem?
    Thanks in advance,
    Ala

    matali wrote:
              int bufSize = 10000;
              byte[] buf = new byte[bufSize];
              int bytesNo = 0;               
              while ((bytesNo = input.read(buf, 0, bufSize)) != -1) {
                   output.write(buf, 0, bytesNo);
    This piece is completely wrong and doesn't work for files bigger than 10000 bytes. Replace it by
    byte[] buffer = new byte[10240]; // 10KB exactly.
    int length = 0;
    while ((length = input.read(buffer)) > 0) { // Read next 10KB of input to buffer.
        output.write(buffer, 0, length); // Write specified length of buffer to output.
    }Or just use output.write(input.read()) in a loop of the contentLength as you're alredy using BufferedInputStream/BufferedOutputStream.
    Another thing, the method is declared to return a boolean, but it actually doesn't? I would just let it throw an exception in case of failure instead of returning a boolean and let the calling method handle the exception.

  • Will a parser be running on Linux?

    I'm sorry.. I have a poor english....
    Will XML parser be running on Linux?
    null

    Jeong-Taek Lee (guest) wrote:
    : I'm sorry.. I have a poor english....
    : Will XML parser be running on Linux?
    If you have a JavaVM on your Linux,
    you can run the Oracle XML Parser for Java there.
    Otherwise you can use our C or C++ version.
    Steve Muench
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • BETA TEST - Oracle softwares running on Linux S/390

    I have Infrastructure to start Test Oracle running on Linux
    S/390 I'd kile to know how we can receive Beta Test to perform
    test with my customer application. I have short time to do this.

    I have Infrastructure to start Test Oracle running on Linux
    S/390 I'd kile to know how we can receive Beta Test to perform
    test with Linux environment under S/390.

  • Print /add logo in reports 10g which is running in linux

    hi
    i want to print /add logo in reports 10g which is running in linux environment and want to change logo programmatically.
    how can i achieve this
    reports version is Report Builder 10.1.2.0.2

    Hi Thanesh,
    There are two possibilities either create a 'Z' one or go through standard one. I prefer you to try the standard one.
    Have a look on this link.
    [Add logo in PE51;
    Hope this will solve your problem.
    Regards,
    Gaurav

  • Opening a Powerpoint in JSP and run under Linux

    Hi,
    I need to have a JSP page that provides a link to open a powerpoint file and this JSP is to be run under Linux. When I try to click on the link in Linux to open the powerpoint, it gives me a lot of junk characters. Can somebody please help mi, thanks a million!

    You have the mimetype for the HTTP response set to something other than what will make the browser start a powerpoint viewer and direct the content of the HTTP response to it.
    In your jsp use the setHeader(String key,String key) method to set the value of "Content-Type" to the mimetype for powerpoint.
    Of course the users must have browsers that are configured to launch a powerpoint viewer or plug-in. If you provide the correct mimetype and peoples browsers desn't have this, then they will get the "save to file" dialog box.

  • Can the database which is running in linux 32 bit can be migrated to 64 bit

    can the database which is running in linux 32 bit can be migrated to 64 bit,while converting oracle ebs R12.1.1 in linux 32 bit to linux 64 bit

    Hi ,
    it seems like duplicate of the post:migrating database from 32 bit to 64 bit
    Your query is already answered by hussein in that post.
    -Rk

  • When will the DIrectory Server run on Linux?

    Does anyone know when the DS software (and more specifically the admin server) will actually run on recent versions of Linux?
    The version of RHE it runs on is ancient...
    Is this typical Sun talking out of both sides of their mouth when it comes to Linux?
    Our enterprise will likely be forced to move to a different DS (eDirectory?) if Sun is going to continue to drag it's feet around making their software run on Linux.

    I can answer your questions but not in this forum - this is not the appropriate place to discuss products other than Sun's. You should be able to get my email address by clicking on the link to richm31415 next to Author:. If not, post here again.

  • Universal Installer won't run in Linux

    When I try to run the Universal Installer from the hard drive in Red Hat Linux I get the following message
    Initializing Java Virtual Machine from /tmp/OraInstall2004-07-12_03-18-48PM/jre/bin/java. Please wait...
    /tmp/OraInstall2004-07-12_03-18-48PM/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
    How do get OUI to run in Linux?

    We reinstalled Linux per puschitz.com's instructions (ie. load the software development options), installed j2re1.4, then modified the ini file that OUI uses to point to our jre install instead of the busted jre that ships with OUI. That finally got OUI working. Thanks to everyone that replied to my inquiry :-)

  • Logbook: ThinkPad T510 running Fedora Linux

    A few days ago I bought my new shiny ThinkPad T510 (4314-7NU, i5 520M) and what I did the next hour after I turned it on the first time was I removed its Win7 and installed my beloved Fedora 14 (64-bit version).
    Here I'm going to share my experience running this Linux OS on T510.
    So far so good!
    Everything worked just fine right out of the box (WiFi, Fingerprint reader, Bluetooth, Sound&Mic, Camera, suspend mode). The laptop was 100% ready for work the very next minute after the Fedora installation process has finished.
    Bravo Lenovo! Great job Fedora!
    The only issue I faced was a well known CPU whine, but since it's not related to OS I won't bother about this in here.
    (btw, switching Power Management seems to help a enough).
    Stay tuned, I'll be posting about how everything is going

    Hey
    Good to know that every thing works! Do share how the fingerprint reader was configured in Linux...
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • OBI SE One can run on Linux OS

    Hello,
    Can OBI SE One run on Linux? as i knew it can run on Windows only. Have any one can help me to answer. Thanks so much....<^_^>

    You can only create a windows executable using the windows version of the application builder.
    It will not run under linux (but might run on a windows emulator.)
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Can't open NEF files in Lightroom...why?????

    I recently replaced my Canon with a Nikon D5000. First test of taking photos and I could not upload the RAW (nef) files to my computer--either directly into my pictures or into lightroom.  Figured that out by downloading the NEF Codec, which allowed

  • Errors with Integrated Planning authorizations

    Dear experts, We are working with Integration Planning, and when we try to create or modify whatever object (by the modeler or the wizard) we receive an error message like this: "You have no authorization for Multiprovider XXXX" Not only Multiprovide

  • Authorization object for field, EBAN-ESTKZ (creation indicator)

    Dear All, Does anyone know if there is an authorization object for field, EBAN-ESTKZ? I need to control the PR's authorization at creation indicator level. i.e. we need to remove the ability for all users to change Purchase Requisitions created by MR

  • Import problems with LR 4.4

    I am suddenly having problems importing photos with Lightroom. I get an error message "Some import operations were not performed. The following files were not imported because they could not be read." Doesn't matter what camera I am using. I can open

  • Please Help me with my printer!

    I got an Epson NX420 free with my iMac at the Apple Store. The problem that I am having is that Mac OSX rarely will list or see my printer in system prefrerences. I have the printer wirelessly connected to the the same router that my iMac is on. The