Grep command - binary file

When using the grep command for the mail_logs file I sometimes receive the message "Binary file (standard input) matches."
This does not always happen. Sometimes I'm able to use grep and receive the expected results. The problem seems to come and go.
Doing it via the command line or stepping through the setup (i.e. grep > 14 (mail_logs) > expression > ...) will show the same "Binary file (standard input) matches" message.
Thank you for any help ahead of time.
(btw - this is for a C350)

Current Version
===============
Model: C350
Version: 6.5.2-101
Build Date: 2009-05-28
Install Date: 2009-06-09 17:46:52
Serial #: xxxxxxxxxxxxxx
BIOS: 1.2.1I
RAID: 1.00.01-0088, MT23, 1.02-007
RAID Status: Optimal
RAID Type: 1
BMC: 1.27
> grep
Currently configured logs:
1. "QMaticLog" Type: "Domain Debug Logs" Retrieval: FTP Poll
2. "antispam" Type: "Anti-Spam Logs" Retrieval: FTP Poll
3. "antivirus" Type: "Anti-Virus Logs" Retrieval: FTP Poll
4. "asarchive" Type: "Anti-Spam Archive" Retrieval: FTP Poll
5. "authentication" Type: "Authentication Logs" Retrieval: FTP Poll
6. "avarchive" Type: "Anti-Virus Archive" Retrieval: FTP Poll
7. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll
8. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll
9. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
10. "euq_logs" Type: "IronPort Spam Quarantine Logs" Retrieval: FTP Poll
11. "euqgui_logs" Type: "IronPort Spam Quarantine GUI Logs" Retrieval: FTP Poll
12. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll
13. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll
14. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
15. "reportd_logs" Type: "Reporting Logs" Retrieval: FTP Poll
16. "reportqueryd_logs" Type: "Reporting Query Logs" Retrieval: FTP Poll
17. "scanning" Type: "Scanning Logs" Retrieval: FTP Poll
18. "slbld_logs" Type: "Safe/Block Lists Logs" Retrieval: FTP Poll
19. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll
20. "status" Type: "Status Logs" Retrieval: FTP Poll
21. "system_logs" Type: "System Logs" Retrieval: FTP Poll
22. "trackerd_logs" Type: "Tracking Logs" Retrieval: FTP Poll
23. "updater_logs" Type: "Updater Logs" Retrieval: FTP Poll
Enter the number of the log you wish to grep.
[]> 14
Enter the regular expression to grep.
[]> 23083882
Do you want this search to be case insensitive? [Y]>
Do you want to tail the logs? [N]>
Do you want to paginate the output? [N]>
Binary file (standard input) matches
> grep 23083882 mail_logs
Binary file (standard input) matches
Hopefully this is everything you were looking for. If not, let me know.

Similar Messages

  • Is there any command in windows batch file similar to the unix grep command

    Hi,
    I have a batch file which will return status of the Database to a file ex: "OPEN". Now I want to read this output file and check for the "OPEN" string from another batch file. any suggestions?. This is similar to "grep" command in unix. I want this to be done in windows batch file.
    This is my actual batch file
    rem -- Description: Check whether the Database is UP
    rem -- Usage:
    rem -- ORACLE_SID is input parameter for the file
    rem --
    rem --start of batch file
    @echo off
    set ORACLE_SID=%1
    echo connect plp/ltd1plp@%1
    echo set cmdsep on
    echo set cmdsep '"'; --"
    echo set term on
    echo spool c:/status_log.log
    echo select status from v$instance;
    echo spool off
    ) | sqlplus /nolog
    rem --end batch file
    Thanks.

    The same link from [google cache|http://209.85.229.132/search?q=cache:EJrm9tgj0a8J:www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx+windows+find&cd=1&hl=en&ct=clnk&client=opera]. Also you can use help:
    find /?

  • Command not found on running binary files.

    I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros.
    I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "command not found" message. For e.g I tried to run adb(5 different files from different places), from terminal and from the folder in which is each and all times I get "command not found" message.
    Some other work though, as eclipse binary. All files I've tried worked fine, and also work fine if I run them from Ubuntu installation.
    I had this problem and for some newly isntalled packages too, as packagkit, and rutorrent. Packagekit worked after a reboot, but rutorrent gives same message.
    Any help?

    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
    bash: QtADB: command not found
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ ./QtADBbash: ./QtADB: No such file or directory
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh ./QtADB
    ./QtADB: ./QtADB: cannot execute binary file
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh QtADB
    QtADB: QtADB: cannot execute binary file
    user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition $ ls -l
    σύνολο 2940
    -rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
    -rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
    -rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
    drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
    drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $
    Last edited by dancer69 (2013-01-17 18:30:23)

  • Import binary file in cvs repository through java cvs import command

    hi ,
    I am using netbean api for cvs command.I am having the same problem that i am not able to open binary file after importing in cvs repository.
    I want to import a directory which contain both text and binary file.
    can you please hel me out to how to import a directory which contain binary files.
    MY CODES
    ImportCommand command = new ImportCommand();
    command.setModule(module);
    command.setLogMessage(comment);
    command.setReleaseTag(releaseTag);
    command.setImportDirectory(path);
    client.setLocalPath(path);
    command.setVendorTag(vendorTag);
    Regards
    ruchira

    Please don't cross post
    http://forum.java.sun.com/thread.jspa?messageID=9455793

  • Grep command to search files which have names of same pattern

    Hi,
    I am new to solaris.
    I am trying to grep all the files in a directory which have names of same pattern.
    I had done this in linux but in solaris it is not working.
    e.g. i have two files setup.log and setup.log.full
    grep -l 'setup*' *
    by this command it works fine on linus but on solaris it is not working.
    Please let me know where am i wrong.
    regards,

    How many files do you have in this directory? It could be that the expansion of the file list is too large for the shell to handle? Or that first asterisk is expanding to something unusable. I'm surprised this works in Linux. What shell are you using in Linux and what shell are you using in Solaris? What error message do you get when you try to run this in a Solaris system?
    Maybe try to use something like this:
    ls -1 | awk '{ print "grep -l "$1" "$1 }' | sh

  • Code coverage using command line always produces a binary file nearly full of zeros, not workable by Visual

    I'm using Professional Edition 2013. I try to generate a coverage report for a C project, using the command line interface.
    In Visual, configuration of the Linker : Configuration Properties -> Linker -> Advanced -> Profile.
    Then:
    vsinstr.exe my.exe /COVERAGE
    I've got messages from Visual that the instrumentation went well.
    VSPerfCmd.exe /START:COVERAGE /OUTPUT:my.coverage
    my.exe
    VSPerfCmd.exe /SHUTDOWN
    The my.coverage file is created. But it's a binary file, more or less full of zeros. Dropping it into Visual just opens it as a binary file. Full stop.
    I've tried the same commands on very different .exe files and it seems like the my.coverage file has always the same content.
    What am I doing wrong ?
    Thx

    Hi Fred35,
    If you test it with other language project, how about the result? For example, a console app or winform app.
    Reference:
    http://www.codeproject.com/Articles/590346/CodeplusCoverageplusforplusRegressionplusTestsplus
    Based on your description, I think the steps have no issue like this blog here:
    http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx
    So I'm afraid that we would think about others. Maybe it is the dependent dll file issue.
    http://stackoverflow.com/questions/17867591/code-coverage-in-visual-studio-2010-for-native-c-exe-dll
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Search binary files?

    How can I search through a folder full of binary files for a specific string (either hex or ascii) ?
    i.e. I have a folder of 2,000 binary files and need to find one that has a specific string in it. Spotlight doesn't seem to be the ticket. I can't seem to find a sample file using grep.

    The UNIX strings command can search for strings inside binary files. You can then use grep to find the string that you want.
    strings files | grep desired_string
    Mihalis.

  • Siebel 8.0.0.12 Fix Pack; Unable to get the seed from binary file.

    Hello Folks,
    Can anyone throw some light into what action is required on my scenario.
    I have applied Fix Pack Siebel 8.0.0.12 on top of 8.0.0.11 SBA. After it is appled, I am facing a documented issue within the Release Notes for the 8.0.0.12 Fix Pack
    The issue is "UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12". I tried the steps given with the MR document, however, I am still having this issue.
    I am also not sure what is expected at the step of; Run the following command: seedgeneratorutil myseed.dat abcdef .
    It's asking me for a value to enter for seed at command prompt. "Enter the seed":
    what I should give here. As an assumption values,I gave SADMIN and tried to launch but still shows up the same error
    Please Assit
    Steps Details from Release Notes:
    UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12
    Component: Server Infrastructure
    Subcomponent: SWSE
    Product Version: Siebel 8.0.0.12
    Base Bug ID: 11938270
    **Users are unable to launch the URL after applying the Siebel 8.0.0.12 Fix Pack.
    **Use the following workaround to address this issue:
    Navigate to the eappweb/bin directory from the command line on the SWSE installation.
    Run the following command:
    seedgeneratorutil myseed.dat abcdef
    NOTE: In the example, myseed.dat is a filename. You can give any file name you wish.
    The myseed.dat file is generated in the eappweb/bin directory.
    Edit eapps.cfg to include the following parameters under the SWE section:
    seedfile = < complete path for myseed.dat >
    Bounce the web server.
    (For Linux only) Copy libmod_swe.so from the eappweb/bin folder to the web/ohs/modules folder
    Thanks
    Kumar

    Wilson,
    Thanks for your reply.I have repeated the steps and regenerated the error messages.
    Browser
    Message:
    An error occurred while trying to process your request. This error indicates a problem with the configuration of this server and should be reported to the webmaster (along with any errors listed below). We apologize for the inconvenience
    Initialization error:
    Unable to get the seed from binary file.
    Log
    2021 2011-09-20 23:23:01 0000-00-00 00:00:00 +0530 00000000 001 003f 0001 09 ss110920_7068 7068 7852 E:\sba80\SWEApp\log\ss110920_7068.log 8.0.0.12 [20444] ENU
    ProcessPluginState     ProcessPluginStateError     1     000000024e781b9c:0     2011-09-20 23:23:01     7852: [SWSE] Unable to get the seed from binary file.
    Eapps.cfg
    [swe]
    Language = enu
    Log = errors
    LogDirectory = $(SWSERoot)\log
    ClientRootDir = $(SWSERoot)
    SessionMonitor = False
    AllowStats = true
    LogSegmentSize = 0
    LogMaxSegments = 0
    DisableNagle = False
    seedfile = E:\sba80\SWEApp\BIN\80012seed.dat
    Thanks
    Kumar

  • A Unix question: grep command

    Hi all,
    I have a directory which contains more directories, and each directory has more directories inside, which in turn may or may not contain Java files. I need to use the grep command in the way that from the first directory goes into the directories recursively, finds the Java files and tell me what files have the PATTERN= "Basic Import Validation".
    I used the grep like this, but guess its wrong since haven't received any response so far. Can sb. please tell me if I've used the command correctly or how should I change it? Any help is greatly appreciated.
    dir> grep -r --include="Basic Import Validation" *.java                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I gues the reason this isn't working for you isthat
    -r means "process all subdirectories of any
    directories listed in the command line args."
    grep never sees the *.java that you supply. Theshell
    grabs that and expands it to list all the .javafiles
    in the pwd.If you can, would you please explain a little more,
    what you meant by above?
    grep whatever *.java When you type that command, your shell (bash, zsh, ksh, tcsh, etc.) is the program that receives that string on its standard input--like Java's System.in. The shell sees *.java and expands it into a list of all the .java files in the current directory. Then the shell invokes grep, and passes on the list of those java files.
    But the list of .java files in the pwd has nothing to do with any java files that might be in subdirs.
    If you use the -r arg, it seems that, in the list of "files" (where you put *.java), if any of those "files" are in fact directories, then -r means to look in files in that dir and its subdirs, rather than treating that arg as a file to examine.
    So you'd put . (dot) as your current dir, and then use the --include to tell grep which files to process and which to ignore.
    I'm sure about the shell expanding *.java. I'm not completely sure about my interpretation of -r and --include, but I'm pretty confident that's right.
    As you said, the way I used grep, didn't return any
    result. Your solution however, gave me results and
    found the Java files containing the PATTERN. Thanks a
    lot.You're welcome.
    If you're still interested, it's probably worth trying out my slight modification to your original solution. If it works, it's a bit cleaner and simpler.

  • How to handle binary file at the time of import in javacvs

    hi ,
    I am using netbean api for cvs command.I am having the same problem that i am not able to open binary file after importing in cvs repository.
    I want to import a directory which contain both text and binary file.
    can you please hel me out to how to import a directory which contain binary files.
    MY CODES
    ImportCommand command = new ImportCommand();
    Map wrapperMap = new HashMap();
    String filenamePattern="*.ppt";
    KeywordSubstitutionOptions keywordSubstitutionOptions;
    Object b= KeywordSubstitutionOptions.BINARY;
    wrapperMap.put(new SimpleStringPattern(filenamePattern),b);
    command.addWrapper(filenamePattern,org.netbeans.lib.cvsclient.command.KeywordSubstitutionOptions.BINARY);
    command.setWrappers(wrapperMap);
    command.setModule(module);
    command.setLogMessage(comment);
    command.setReleaseTag(releaseTag);
    command.setImportDirectory(path);
    client.setLocalPath(path);
    command.setVendorTag(vendorTag);
    result = client.executeCommand(command, globalOptions);
    Regards
    ruchira

    Please don't cross post.
    http://forum.java.sun.com/thread.jspa?threadID=5127696&tstart=0

  • Grep Command in Linux

    Hi all,
    I having problem getting the output of grep command in Linux (Red Hat 9.0).
    At the same time, I am able to get the output of cat command.
    Using the output of cat command, I am writing it to a text file and then in another process using grep I am extracting particular line from the text file.
    To get the Process Output I am using a code from http://hacks.oreilly.com/pub/h/1092#thread.
    Below is my code.
    public void getUSBInfo() {     
           try{
                  String catCommand =  "cat /proc/bus/usb/devices";
                  System.out.println("catCommand is : "+catCommand);
                  Process p = Runtime.getRuntime().exec(catCommand);
                  usbInfoBuffer = new StringBuffer("");
                  InputStream inStream = p.getInputStream();
                  new InputStreamHandler( usbInfoBuffer, inStream ); 
                                  // InputStreamHandler is the class used to read the console output.
                  StringBuffer errBuffer = new StringBuffer();
                  InputStream errStream = p.getErrorStream();
                  new InputStreamHandler( errBuffer , errStream );
                  p.waitFor();
                  catCommandOutput = usbInfoBuffer.toString();
                  System.out.println("USB Info : " +catCommandOutput);
                  String fileCat ="/EthicsPoint/usbInfo.txt";
                  File catCommandOutputFile =  new File(fileCat);
                  boolean filesuccess = catCommandOutputFile.createNewFile();
                  setContents(catCommandOutputFile,catCommandOutput);
                  extractUSBInfo();
                  }catch(Exception e) {
                 JOptionPane.showMessageDialog(null," Exception occured executing Native Method..catCommand.."                                         ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 6" +e);
    public void extractUSBInfo() {
         try {
              String filename = " /EthicsPoint/usbInfo.txt";
              String grepCommand = "grep \"P:\\|S:\""+filename ;
               //String[] grepCommand = new String[]{"grep", "\"P:\\|S:\"", "/EthicsPoint/usbInfo.txt"};
              Process p = Runtime.getRuntime().exec(grepCommand);
              usbExtractedInfoBuffer = new StringBuffer("");
              InputStream inStream = p.getInputStream();
              new InputStreamHandler( usbExtractedInfoBuffer, inStream );
              StringBuffer errBuffer = new StringBuffer();
              InputStream errStream = p.getErrorStream();
              new InputStreamHandler( errBuffer , errStream );
              p.waitFor();
              String Output = usbExtractedInfoBuffer.toString();
              System.out.println("grepCommand is    : " +grepCommand);
              System.out.println("Searched USB Info : " +Output);
          }catch(Exception e) {
         JOptionPane.showMessageDialog(null," Exception occured executing Native Method..grepCommand..."                               ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 7" +e);
          }I am not getting any IOException. The output of System.out.println("Searched USB Info : " +Output); is blank.
    If I try shell> grep "P:\|S:" /EthicsPoint/usbInfo.txt, I get the desired output.
    What could be the reason ? While using cat command I am getting the output , but grep command is
    returning blank. I even tried String array[] for exec() command, but still get blank.
    Where and what I am doing wrong ?
    Thanks in advance.
    Regards,
    Jay.

    Hi asjf,
    Thanks a lot... The problem is finally solved.
    String exeCommand = "grep P:\\|S: "+filename; I removed the quotes and it worked. But if I
    remove backslash for the pipe symbol nothing happens..as I get return value of 1.
    Output after removing quotes :
    exeCommand is : grep P:\|S:  /EthicsPoint/usbInfo.txt
    Exit Value is : 0
    USB Info : P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce84b000
    P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce849000But I have noticed another problem. If I execute the aplication number of times, eventhough
    the exit value is 0, USB Info : is blank. This happens sometimes. Sometimes I get the correct output.
    What could be the reason ?
    Thanks to you and all who have replied to my queries....Thanks a lot.....Really appreciate the time and effort.
    Regards,
    Jay.

  • Problem when streaming out a binary file

    Hi,
    I am trying to stream out a binary file to an output stream (not a file, but a socket). My file is a gzip file, and I was initially simply trying to open the
    file, read it to a a byte array, and writing it out to my output stream. However, I got corrupted data at my other end and it took me quite a bit of
    debugging hours to find out why.
    I tried writing to a file the same information I was writing to my output stream but, although my file was correct, my output stream still contained
    corrupted data.
    I think I have finally narrowed down my problem to the fact that when I try to write a 0x00 value to my output stream, everything gets ignored from this
    point until I write a 0x0a byte to my output stream. Obviously this produces corrupted data, since I need all the bytes of my binary file.
    If somebody can direct me as to how to write a 0x00 value to a socket output stream, I would really appreciate your input.
    This is a sample of my code (Right now I am writing byte by byte: not very efficient, but was the only way I found where I was getting a problem):
    // out is of type OutputStream
    if (Zipped){
         // In this case we just have to stream the file out
    File myFile = new File(fileName);
         FileInputStream inputFile = new FileInputStream(myFile);
         FileOutputStream fos = new FileOutputStream(new File("/tmp/zip.gz")); //zip.gz results in a good (not corrupted) file.
         ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
         int bytes = (int)myFile.length();
         byte[] buffer = new byte[bytes];
         bytes = inputFile.read(buffer);
         while (bytes != -1) {
              out1.write(buffer,0,bytes);
              bytes = inputFile.read(buffer);
         inputFile.close();
         try {
              int count=0;
              bytes=out1.size();
              while (count<bytes){
                   fos.write(buffer,count,1);
    out.write(buffer,count,1); // when buffer[count] == 0x00, everything after it gets ignored until a 0x0a byte is written.
                   count++;
         } catch (IOException ioe) {
              SysLog.event("IOEXCEPTION: "+ioe);
         } catch (Exception e) {
              SysLog.event("EXCEPTION: "+e);
         fos.flush();
         fos.close();
         out.flush();
    out.close();
         return;
    }

    Actually, I had thought about that and for some time I tried getting rid of some of the header information in the gzipped file, and then I stopped doing that when I realized that part of the gzipped file is a CRC value which I believe is computed taking into account both the data of the file and the header information. If this is the case, then getting rid of part of the header would produce a corrupted file ... but then, I might be wrong in this issue.
    Anyway, to make my application more clear, what I am doing is writing the code for a cgi command which is suppossed to access information from a database, create an xml file, gzip it, and then send it to the client who requested the information.
    Therefore, what I am sending is an xml file (Content-Type: text/xml) in compressed format (Content-Encoding: gzip). Note that if I don't gzip the file and then send it uncompressed to the client, I have no problems. However, for me it is very important to gzip it because the size of the file can get very large and that would just take bandwidth unnecessarily.
    On the other hand, if I try to gunzip the file locally, I have no problem either (the file is not corrupt at the server's end). Therefore, my problem is when I stream it out.
    Any further help would be really appreciated!

  • Reading a binary file to string variable does not populate correctly

    Hi, I am new to Adobe Air/Flex and I'm trying to read a
    binary file which also contains text in "cleartext". The problem
    I'm having is that when I call FileStream.readUTFBytes method, only
    the first 6 characters are showing up in my string variable
    "contents" when I debug it in FlexBuilder or use a trace command
    and debug it. I have also tried with other types of files but I
    have a similar problem unless it's a non-binary file.
    Am I doing something incorrectly or should I be reading a
    binary file differently than the way I'm reading it currently?
    The source code is shown below.
    TIA,
    Magnus
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import flash.filesystem.File;
    private function readFiles():void{
    var feedFile:File = File.userDirectory.resolvePath( "Local
    Settings/Application Data/Microsoft/Feeds/AppScout~.feed-ms" );
    var stream:FileStream = new FileStream();
    stream.open( feedFile, FileMode.READ );
    var contents:String =
    stream.readUTFBytes(stream.bytesAvailable);
    trace(contents);
    stream.close();
    ]]>
    </mx:Script>
    <mx:Button x="121" y="66" label="Button"
    click="readFiles()" />
    </mx:WindowedApplication>

    It's difficult to tell what it is, it looks like a binary
    pipe symbol but I can copy it from TextPad for example. Some of the
    characters following it cannot be copied from TextPad which I
    assume is because it's null. I can read the whole file in C#/.Net
    and assign it to a string variable without any problems but perhaps
    Air is somewhat limited to binary content.

  • Write to binary file different from 8.0 to 8.2?

    I am communicating with a device via USB and am using a method setup by the USB driver programmer. To communicate, I write to a binary file with a filename of \\?\COMx. This has been working fine for about a  year in mfg with Labview 8.0. I recently "upgraded" to 8.2 and now it does not work. If I save for a previous version and run 8.0 it works fine. How can I make this work with 8.2?

    Yi Y,
    The USB device is one of the instruments we manufacture. The USB driver is written so writing to the USB port is just like writing to a file. I use the binary read/write VI's to send and receive commands to this USB device. The filename I use is \\?\COM#. I am told by the USB driver creator that this is common for low level C. I have been using this VI for that last year and recently upgraged from 8.0 to 8.2 and it does not work. I run the same vi under 8.0 and it works fine. This is not a common way to communicate, so will probably not get an answer.
    My next question is, is there any way to run an 8.0 dll or vi from an 8.2 executable?
    Thanks
    Hi dgtest1,
    Which USB device you are using, and which driver are you using? I'm trying to figure out specifically how you are communicating with the USB device by writing a binary file and how was the binary file written.  Could you please post more information to describe in more details about what your set up is doing?
    Thanks!
    Yi Y.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Read binary files that are wraped in the downloaded executable signed jar

    Hello, there:
    I have created a Swing application and created a signed jar file and uploaded it to my site. The signed jar includes class packages, and a folder of binary files which are the datasource for my application.
    jws downloads this signed executable jar, it'll automatically run it, but it has problems reading the binary folders wrapped in itself (the app is supposed to read the folder's structure and use the info to create a JTree object, and read the file's content as well). Is it the file path conversion problem? Do we need to use URL instead? I tried it after reading some threads on this forum but didn't make it.
    As an alternatives, I want JWS to unjar the jar file and expand it to exploded files. I manually unjar it and run the app from command line, it works fine.
    Plus, the app is supposed to manipulate the binary files when it's in process, like saving new content back to the files, zip the files and upload them to the remote sql server. therefore, I think it's easy to have it run when it's expanded.
    So here is the question: JWS by default is running the executable jar, is there a way to tell JWS to unzip the jar and find the main class in the exploded files and run it?
    Thanks a lot for your suggestions,
    Sway

    You can get to any resource in a jar file in your classpath. The code below will return InputStream for resource.bin nested two packages down.
    InputStream in = YourClass.class.getResourceAsStream("/com/mypackage/resouce.bin");  //use '/' instead of '.'You can open a FileOutputStream to write that file.
    OutputStream out = new FileOutputStream("myTempResource.bin");
    IOUtil.streamAndClose(in,out);If the resouce is a nested zip or nested jar then you can use the Java Zip utilities to unwrap the stream.

Maybe you are looking for

  • How do I switch my clash of clans account with Game Center?

    I'm logged into my dad's clash of clans account with Game Center and now I am trying to log in using my Game Center account but it's not letting me I have logged out of my dad's account on everything and logged into mine and I deleted the game and re

  • [Help] Error when using Form Builder

    When using Form Builder to create a new form from TEMPLATE.fmb, there is an error like this: FRM-18108:Failed to load the following objects: Source Module:APPSTAND Source object:STANDARD_PC_AND_VA Source Module:APPSTAND Source object:STANDARD_TOOLBAR

  • Corrupt .cp file

    Hi guys, Working away as normal on 30 odd sims today and decided to move the published files (.htm and .swf) into their own folder. The .cp files didn't move and have always been isolated from the published files. Pointless info you say? Yep, I agree

  • Upload feature

    I am creating a a website for someone else who would like the option of uploading there own pictures to the photo gallery if anyone knows any java script or HTML that will allow me to add this feature or knows were to find it I would greatly apprecia

  • How to display a horizontal list of images

    Hello everyone, I am new to Flash Builder 4 and I am looking to display a horizontal list of images on my Flex Mobile Project (using Burrito Flash Builder). Can anyone recommend me what component that I should use? I know the <s:List /> will display