How do I grab data from a url?query using LabView 8.0?

If I copy the following url in my web browser, it will give me the quote of BBD-A.TO symbol from yahoo. The data is comma separated (csv).
http://finance.yahoo.com/d/quotes.csv?s=BBD-A.TO&d​=t&f=sl1d1t1c1ohgvj1pp2wern
I would like to know how to grab that information using LabView. I tried using datasocket VIs but I was unsuccessful, it seems that as soon as I put the query part of the url, I am not able to read (timeout occur).
I think there might be another way to do it using .NET "httprequest" and "httpresponse" classes but again I was not successful. 
I am really new to this, thanks for your help.

Hi Ben,
      Try adding "[text]" to the end of the URL that you're supplying to the "Datasocket Open (Read)".  In your case: http://finance.yahoo.com/d/quotes.csv?s=BBD-A.TO&d​=t&f=sl1d1t1c1ohgvj1pp2wern[text]
Also, Jeremy L posted a GetHTMLSourceString.vi.
Cheers.
Message Edited by tbd on 01-07-2007 12:08 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Similar Messages

  • How can I get Data from the Sound cart in Labview? Does a VI exist?

    How can I get Data from the Sound cart in Labview? Does a VI exist?

    Yes, there are VIs for acquiring data from Sound cards. And examples too. If you don't have LabVIEW yet, do a search on NI's site for example VIs.
    Khalid

  • How to read data from a router by using labview

    I am a  beginner labview. How to read data from a router by using labview ? 

    What kind of data are you trying to read?
    Does the router behave like a webserver that you log into?  If so, search the forums for threads discussing HTML.

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • How do I recover data from a single App using an iTunes backup and put it back on my iPhone?

    An app I use (Text Me 2) automatically cleared conversation history. I have an iTunes back-up of it from last year. I tried searching a ton and found articles, but never found a step-by-step article from start to finish describing how I can get only that app's data back on my iPhone without having to restore the entire thing (otherwise I lose all of my last 6 months of content)? All the articles I read stopped after using the iPhone backup extractor to extract, and didn't tell me how to get that back onto my iPhone. I use iTunes on Mac OS Mavericks also.
    Thanks in advance!

    Then what's with all of the programs these two responses mention and being able to restore a single app data?
    If you know you are going to do this in advance and have a jailbroken phone, use AppBackup which you can get through cydia. Otherwise, if this need arises after having restored already, you can get the data from an iPhone backup using iPhone Backup Extractor and/or a Time Machine backup (you can google to find the location of the backups, but I think it's in Application Support > Mobile Sync > Backups), and then restore the documents/library folders of the application using iExplorer (which is by the same people who made iPhone Explorer but was changed for legal reasons and now is slightly more user friendly and suited for this purpose. I just did this to restore my Angry Birds scores/data among other things.
    and
    I do that with iTools. You can backup each app with its data into an ipa file to the computer, to restore it individually. This allows you to merge apps with its data from different backups.
    ...not to mention I found several answers like this in various forums...

  • How to retrieve the data from SAP-BAPI by using VB Code

    Hi ,
    I am new to BAPI.
    V have created an application in Visual Basic with the following fields
    EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
    We have written the code for SAVING the data into SAP. Already we have
    constructed a table with the respective fields in SAP.
    For that we ourself created our own BAPI Structure / Function Group /
    Function Module/ Business Object - RELEASED related elements.
    1)Established the connection successfully.
    2)Stored the data into SAP Successfully and v r in need of
    3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
    Following is the code :
    'BAPI Structure  : ZBAPIEMP
    'Function Group  : ZBAPIEMP
    'Function Module : ZBAPI_EMP_CREATEFROMDATA
    'Business Object : ZBAPIEMP
    'Function Module : ZBAPI_EMP_GETLIST
    Dim bapictrl As Object
    Dim oconnection As Object
    Dim boEmp As Object
    Dim oZEmp_Header As Object
    Dim oImpStruct As Object
    Dim oExpStruct As Object
    Dim oreturn As Object
    Dim x As String
    Private Sub Form_Load()
    Set bapictrl = CreateObject("SAP.BAPI.1")
    Set oconnection = bapictrl.Connection
    oconnection.logon
    Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
    Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
    Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
    End Sub
    Private Sub cmdSave_Click()
        oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
        oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
        oZEmp_Header.Value("ADDR1") = txtAddr1.Text
        oZEmp_Header.Value("ADDR2") = txtAddr2.Text
        oZEmp_Header.Value("CITY") = txtCity.Text
        oZEmp_Header.Value("PHONE") = txtPhone.Text
        boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
        x = oreturn.Value("Message")
        If x = "" Then
            MsgBox "Transaction Completed!..."
        Else
            MsgBox x
        End If
    End Sub
    Private Sub cmdView_Click()
    End Sub
    COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.

    I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
    -Tim
    Option Compare Database
    Dim SAPLOGIN As Boolean
    Dim FunctionCtrl As Object
    Dim SapConnection As Object
    Sub SAPLOGOUT()
    On Error GoTo LogoutFehler
        SapConnection.logoff
        SAPLOGIN = False
    Exit Sub
    LogoutFehler:
        If Err.Number = 91 Then
            Exit Sub
        Else
            MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
        End If
    End Sub
    Function SAPLOG() As Boolean
    'Verbindungsobjekt setzen (Property von FunctionCtrl)
       Set FunctionCtrl = CreateObject("SAP.Functions")
       Set SapConnection = FunctionCtrl.Connection
    'Logon mit Initialwerten
       SapConnection.Client = "010"
       SapConnection.Language = "EN"
       SapConnection.System = "PR1"
       SapConnection.SystemNumber = "00"
       'SapConnection.Password = ""
       SapConnection.GroupName = "PR1"
       SapConnection.HostName = "168.9.25.120"
       SapConnection.MessageServer = "168.9.25.120"
         If SapConnection.Logon(0, False) <> True Then  'Logon mit Dialog
             Set SapConnection = Nothing
             DoCmd.Hourglass False
             MsgBox "No connection to SAP R/3 !"
             SAPLOGIN = False
             SAPLOG = False
             Exit Function
          End If
        SAPLOG = True
    End Function
    Function MatDescr(MatNr As String)
    Dim func1 As Object
    Dim row As Object, X As Integer, ErsteNr As String
    Dim DatensatzZähler As Long
    Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
        If Not SAPLOGIN Then
            If Not SAPLOG() Then
                MsgBox "No connection  to SAP !", 16
                SAPLOGOUT
                Exit Function
            End If
        End If
    ' Instanziieren des Function-Objektes
    Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
    ' Export-Paramter definieren
    func1.exports("MATNR") = MatNr
    func1.exports("SPRAS") = "EN"
    DoEvents
    If Not func1.call Then
        If func1.exception <> "" Then
            MsgBox "Communication Error with RFC " & func1.exception
        End If
        DoCmd.Hourglass False
        SAPLOGOUT
        Exit Function
    Else
      MatDescr = func1.imports("MAKTX")
    End If
    If MatDescr = "" Then
        MatDescr = "PART NO. NOT FOUND"
    End If
    End Function

  • How to extract payload data from SOA database schema using Java

    I am trying to extract the payload data and output as XML text files using Java. Seems that is stored in SOA table XML_DOCUMENT. I am trying the following Java code to get started and it's not working as I would expect. I only get a few actual lines of output and, when I do, I only get the *<?xml version ... ?>* line.
    I appreciate any advice to extract the payload data from the database. Ultimately I will want to include the composite instance ID in the SQL but for now I'm just using the code shown here:
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("soa_db_connection_string");
    ods.setUser("soa_db_user_id");
    ods.setPassword("soa_db_password");
    Connection conn = ods.getConnection();
    String sql = "select document from xml_document where rownum < 10";
    OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement(sql);
    DBBinXMLMetadataProvider dbrep = BinXMLMetadataProviderFactory.createDBMetadataProvider();
    dbrep.setConnectionPool(ods);
    dbrep.associateDataConnection(conn);
    OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
    XMLDOMImplementation domimpl = new XMLDOMImplementation();
    BinXMLProcessor proc = BinXMLProcessorFactory.createProcessor(dbrep);
    while (rset.next()) {
         Blob blob = rset.getBlob("DOCUMENT");
         BinXMLStream inpbin = proc.createBinXMLStream(blob);
         BinXMLDecoder dec = inpbin.getDecoder();
         InfosetReader xmlreader = dec.getReader();
         XMLDocument doc = (XMLDocument)domimpl.createDocument(xmlreader);
         doc.print(System.out);
    }

    I found a method using a slight variation of the code I originally posted. Essentially you remove the DBBinXMLMetadataProvider dbrep portion. I believe, with this included, the XML being extracted is validated against the database (which is referenced as a "metadata provider"). Since the SOA schema doesn't seem to contain the information to validate the XML it returns as blank. If you don't include the dbrep portion then the XML is extracted as desired.
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("soa_db_connection_string");
    ods.setUser("soa_db_user_id");
    ods.setPassword("soa_db_password");
    Connection conn = ods.getConnection();
    String sql = "select document from xml_document where rownum < 10";
    OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement(sql);
    OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
    XMLDOMImplementation domimpl = new XMLDOMImplementation();
    BinXMLProcessor proc = BinXMLProcessorFactory.createProcessor();
    while (rset.next()) {
         BLOB blob = rset.getBLOB("DOCUMENT");
         BinXMLStream inpbin = proc.createBinXMLStream(blob);
         BinXMLDecoder dec = inpbin.getDecoder();
         InfosetReader xmlreader = dec.getReader();
         XMLDocument doc = (XMLDocument)domimpl.createDocument(xmlreader);
         doc.print(System.out);
    }

  • How do I Grab data from Canon HF S10 SD card?

    I have a guy shooting for me who is using a Canon HF S10. It captures footage as an .mts AVCHD format. I am trying to find the easiest way to get that data onto my harddrive. I am really hoping I do have to sit there for an hour or 3 and "capture" everything. I have a MacBook Pro with the SD card slot - can I just pull the card from his camera, shove it in the MB Pro, and copy the footage over as Data and worry about converting it/capturing it later from those files?
    This is Final Cut Pro 6.

    To all who care,
    I have a MacBook unibody and am running Snow Leopard. I have experienced all the same frustrations listed above and on other related posts with respect to the Canon HF10 and Leopard/Snow Leopard. I will tell you that it made absolutely NO SENSE to me why Canon, a very Mac friendly company, would make these procedures SO difficult. Why would I purchase a compact high definition camera that fits in the palm of my hand if space saving and simplification was not a premium in the decision matrix of my investment? You're telling me I need to travel with a power cord, USB cable and an installation CD/DVD at every juncture of my video editing with cords scattered from heck to breakfast? Well, I don't, and Canon didn't intend on my doing that, either.
    Procedure to be able to simply place your videos into a finger sized SDHC card reader after placing them on your SDHC/Class IV or higher/card directly from your camera:
    1. Ensure your card in installed in your camera (duh)?
    2. Turn Camera On.
    3. Spin selector wheel to Video Playback.
    4. Notice Four Options: Movies: Original (Built-In Mem), Movies: Original (Card), Movies: Playlist (Built-In Mem), Movies: Playlist (Card).
    5. The work you've done all goes into the "Movies: Original" Locations. If you, like me, have popped out your card here and beat your head against your computer screen wondering why you can't get to what you know to be on the card, you've stopped here... Here, yes, you do need to follow the book procedure and play the musical cords and curse the poor ergonomic nature of this design.
    6. **Clutch Move** Highlight the work you'd like to edit on iMovie in the "Movies: Original (Card)" section and press the FUNC. button.
    7. **Clutch Move2** Select "ADD TO PLAYLIST", at which point you will be asked, All scenes on this date or simply this one scene. Do whatever you like, the camera means business. Confirm your request.
    8. Check your procedure following skills by now moving to the "Movie: Playlist (Card)" category.
    9. Whattaya know!!! Now something is there that wasn't before, that same video clip I've been trying to put on my computer now strangely exists in two locations on my camera... Well, just push the "I believe button" and trust me. When you extract your SDHC card and interface it with your computer, you will be very happy when you see iMovie respond to your request in familiar Mac style and fashion.
    Hope this helps. Please let me know if any of you find success with the above procedure.
    Godspeed, Mac friends,
    Traveling Light

  • How to pass csv data from file into DLL using TestStand

    Hi,
    We have data files which are of CSV format. Each row contains
    about 9 items of data, and have about 5 rows of this data (ie, 5
    test points) :
    eg
    TErrAdd1,UUT,UUT,STM1E,AU4/FR,PRBS23,BIT,10,60
    TErrAdd2,UUT,UUT,STM4O,AU3/UNFR,PRBS15,B1,20,60
    TErrAdd3,UUT,UUT,STM16O,AU4_16C/UNFR,PRBS9,BIT,7,60
    TErrAdd4,UUT,UUT,STM0E,AU3/UNFR,PRBS20,B2,5,60
    TErrAdd5,UUT,UUT,STM64O,AU4_4C/FR,PRBS11,B1,6,60
    What we want to do is to be able to directly pass each
    row of data to a C/C++ DLL. The DLL fn accepts this
    data as a vector of strings.
    eg.
    void DLLTestFn( vector const & configData )
    However, we can write a wrapper for the DLL as I don't
    think TestStand will know about vectors.
    We don't really want to have to hardcode individial references
    to each item of data in TestStand. Is this possible?
    Just read in a row from a data file, and sent it direct
    to the DLL?

    Hi Richardi,
    the principle is quite simple, however, you still need to use a programming language to make the initial file read.
    Once you've done this, you could have it as an array of strings, and pass this directly to a wrapper DLL, which would then pass the data into a string vector.
    Look up the examples\AccessingArrays\PassingArrayParametersToDll\AccessingArrays.seq
    to see how to do this without passing the sequence context.
    If you've read in the details into a container type structure already, then I've made an example which demonstrates this principle and what you'll need to pass it to a vector. (Similar principle can be used to fill in the container when you read the file in the first place.
    You cannot go directly to a vector, since TestStand doesn't understand them.
    Vector classes are difficult to export polymorphically from a DLL since the template class doesn't export, and needs specifically defining. This is what I'm assuming you're ultimately trying to do. (see ref :
    How to Export STL components inside and outside of a class
    I've used VIsual C++ 6 and TestStand 3.0
    Please let me know if this helps to answer your query.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    for hannah vectors.zip ‏1619 KB

  • How to retrieve the data from MDM hierarchy table using MDM Java API

    Hi,
    I had a hierarchy table in MDM. This table had some column say x. I want to retrieve the values of this x column and need to show them in a drop down using MDM Java API.
    Can anyone help me to solve this?
    Regards
    Vallabhaneni

    Hi,
    Here is your code...
    TableId Hier_TId = repository_schema.getTableId(<hierarchy table id>);
    java.util.List list = new ArrayList();
    ResultDefinition Supporting_result_dfn = null;
    FieldProperties[] Hier_Field_props =rep_schema.getTableSchema(Hier_TId).getFields();
    LookupFieldProperties lookup_field = null;
    TableSchema lookupTableSchema = null;
    FieldId[] lookupFieldIDs = null;
    for (int i = 0, j = Hier_Field_props.length; i < j; i++) {
    if (Hier_Field_props<i>.isLookup()) {     
                                  lookup_field = (LookupFieldProperties) Hier_Field_props<i>;
         lookupTableSchema =repository_schema.getTableSchema(lookup_field.getLookupTableId());
                                  lookupFieldIDs = lookupTableSchema.getFieldIds();
         Supporting_result_dfn = new ResultDefinition(lookup_field.getLookupTableId());
         Supporting_result_dfn.setSelectFields(lookupFieldIDs);
         list.add(Supporting_result_dfn);
    com.sap.mdm.search.Search hier_search =new com.sap.mdm.search.Search(Hier_TId);
    ResultDefinition Hier_Resultdfn =     new ResultDefinition(Hier_TId);
    Hier_Resultdfn.setSelectFields(rep_schema.getTableSchema(Hier_TId).getDisplayFieldIds());
    ResultDefinition[] supportingResultDefinitions =
    (ResultDefinition[])list.toArray(new ResultDefinition [ list.size() ]);
    RetrieveLimitedHierTreeCommand retrieve_Hier_tree_cmd =
    new RetrieveLimitedHierTreeCommand(conn_acc);
    retrieve_Hier_tree_cmd.setResultDefinition(Hier_Resultdfn);
    retrieve_Hier_tree_cmd.setSession(Auth_User_session_cmd.getSession());
    retrieve_Hier_tree_cmd.setSearch(hier_search);
    retrieve_Hier_tree_cmd.setSupportingResultDefinitions(supportingResultDefinitions);
    try {
         retrieve_Hier_tree_cmd.execute();
    } catch (CommandException e5) {
              // TODO Auto-generated catch block
              e5.printStackTrace();
    HierNode Hier_Node = retrieve_Hier_tree_cmd.getTree();
    print(Hier_Node,1);
    //method print()
    static private void print(HierNode node, int level) {
    if (!node.isRoot()) {
         for (int i = 0, j = level; i < j; i++) {
              System.out.print("\t");
         System.out.println(node.getDisplayValue());
    HierNode[] children = node.getChildren();
    if (children != null) {
              level++;
    for (int i = 0, j = children.length; i < j; i++) {
    print(children<i>, level);
    //end method print()
    Best regards,
    Arun prabhu S
    Edited by: Arun Prabhu Sivakumar on Jul 7, 2008 12:19 PM

  • Is it possible to read data from MATLAB *.mat file using LabVIEW?

    I have *.mat file from Matlab with some data. Does anybody know how to extract them from this file. I need to know the file format.
    Oleg Chutko.

    The Mathworks site is pretty good about having documentation for the formats of their file types. I recommend looking there for the format.

  • How to control UAD2 programmer from PLS-Develpment Tools Using Labview?

    Hi ALL,
    I'm trying to programe "STR712FR2T6" using Universal Access Device from PLS.
    this programmer support ActiveX control as PLS-support told me. I had tried many times to control this programmer but i could not i have littile experience using Active X control but this time it looks deffirent.
    Does any one have controled this speciefic device with labview? Please Support me?
    Does any one have any idea helps to control this device? Please help?
    Thanks and regards.

    Do you have a manual for the ActiveX control?
    It seems your problem lies in your current lack of understanding of the ActiveX control in LV.
    This link provides a lot of information regarding the use of ActiveX controls in LV, follow the document links for more info.
    Try to explain in more detail which part of the ActiveX control interfacing you don't get to work.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Trying to get data from a bluetooth device using labview. Can anyone help?

    I am currently working on a project to monitor pulse rate and need send the reading via bluetooth. My laptop is bluetooth enabled and is using a toshiba stack. I am new to LabView and need some help with this.
    Message Edited by Iceberg D4 on 05-05-2009 10:58 AM

    You can definitely do this using LabVIEW. Search for labview bluetooth on NIs website to look for articles and documentation with regards to this. One thing I noticed and would like to point out:
    On Windows XP - LabVIEW works with Bluetooth devices that use the Microsoft Bluetooth
    driver included with Windows XP Service Pack 2 and later. Refer to the
    Microsoft Web site for Bluetooth devices that are supported by the
    Microsoft Bluetooth driver. Most Bluetooth devices come packaged with a
    proprietary Bluetooth driver. To use the device with LabVIEW, the
    Bluetooth adapter must be using the Microsoft Bluetooth driver. A
    Microsoft Bluetooth driver for Windows XP SP1 was also available. Refer
    to Microsoft Knowledge Base Article 323183: Availability of Windows XP Service Pack 1 Support for Bluetooth Wireless Devices for more information about Bluetooth-compatible operating systems.
    Have a look at the following:
    http://zone.ni.com/devzone/cda/tut/p/id/3260
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvcomm/bluetooth_vis/
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Reading JSON data from a URL

    Hi all,
    I have a requirement of reading JSON data from a particular URL and using one of the value to set one property in iView. I need some info on how to get JSON data from a URL and extracting attribute's value from it.
    What are the APIs that can be used for this?Can anyone provide a solution/working example in Java for this?
    I am working on EP 7.3.

    Hi Tarun,
    JAXB should work for you. Take a look at this example:
    JAXB JSON Example | Examples Java Code Geeks
    Regards,
    Tobias

  • How to use the readLine()  method when reading data from a URL?

    Hello,
    I have a URL which contains text input.
    The only way to get the data from this URL is by opening a URL connection to it.
    I would like to get the data from this URL but at the same time I would like to be able to use readLine() method of BufferedReader in order to read the data line by line.
    My question is how do I combine between these two requirements in order to reed the data from the URL?
    Roy

    Hello Roy,
    can you try out this code.
      URL yahoo = new URL("http://www.yahoo.com/");
            URLConnection yc = yahoo.openConnection();
            BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    yc.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null)
                System.out.println(inputLine);
            in.close();
    Regards,
    Mohan R

Maybe you are looking for

  • FM to read multiline WF container from abap webdynpro

    Hi Gurus, We are stuck in reading workflow multiline container in our ABAP webdynpro code. Hope some one can assist us. Let me brief you the issue. We need to read the workflow multiline container using our webdynpro program. we are using the FM SAP_

  • Reg. Alv report using function modules

    I have a ALV report in which i am displaying a report in main screen1. i have a pushbutton on the main screen. when i click the pushbutton it has to display the interactive report below, in the main screen1 itself. like it has to display first the ma

  • Interconnecting two services in the composite applciation

    Hi all, I am consuming two services in my composite application. I need to pass separate set of data to my two services. The first service is Create PO and the second service is Create SO. I enter the iputs for Create PO first and on the Click of Sub

  • Costing variant change

    We have a requirement to change a setting of a costing variant in which cost estimates with quantity structure was initally having setting as without date.The user now requires this to be changed to date mandatory.Kindly suggest which are the fields

  • Game recording issues with ffmpeg

    Hello, I'm trying to create a script to record windowed games with ffmpeg. This is what I have so far: #!/bin/sh INFO=$(xwininfo -frame) WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+') WIN_XY=$(echo $INFO | grep