Scripting, basic problems

hi!
i am writing a batch script and would like to know if you can do the following:
in my script i want to use: mp3info -p %a $1 ,  this prints the "artist" of a given file to the terminal. but i want to store this in a string! i tried " > yeah[0]" but without success ;-) how do i do that??
in mind i want something like that:
yeah[0]= mp3info -p %a $1
echo -----
echo name:
echo ${yeah[0]}
echo -----
greetings matto

This is newbie corner, so the original poster probably won't notice tha those are back tics, and not apostrophes around the command. IE: the thingy under the tilde (~) key in the upper left corner.
A more nestable syntax that is recommended by modern bash is:
artist=$(mp3info -p %a $1)
Dusty

Similar Messages

  • Why do we run into stupid basic problems with firefox?

    I have jre1.6_u31 installed on a Windows 7 and the brilliant
    firefox keep tell me that I've to install the jre_1.6_u29 missing plugin when I try to run an applet...a simple applet!! The plugin doesn't appear on add-ons manager then i use "check your plugins" and the stupid response is: "For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version."
    Running an applet is basic! Why are u making new versions when older ones are better? I' m sick of running into this stupid problems with firefox! Everything works on ie, chrome and safari but not on Firefox!
    I' m sick of trying to solve firefox basic problems!
    We have a site that has one thousand ore more visits per day...and we only have troubles with firefox! What do I tell the costumers? I' m not going to give them solutions difficult and confusing as usually your solutions are! They are common people not developers as me...they just want the things to work! I gave up and the solution that I give to them now is to stop using firefox and uninstall it. And people ask I chrome is becoming the second most used browser...here is your answer...
    I' m a developer and I've to develop I don't have the time patiente to trying solving basic firefox problems. If you don't know how to solve the problems then stop developing this and save us the headaches.

    Have you updated Java lately? You say you have jre1.6_u31 installed, but "Java(TM) Platform SE 6 U31" is not showing in the Plugins submitted with your question (click "More system details" to the right of your original question post). To enable, Add-ons > Plugins, and enable the item.
    If your OS is 64-bit and you have 32-bit browsers (Firefox) and 64-bit browsers installed, then you need to install both the 32-bit and 64-bit versions of Java.
    *See --> https://www.java.com/en/download/faq/java_win64bit.xml
    '''Older versions of Java blocked in Firefox''' --> https://addons.mozilla.org/en-US/firefox/blocked/p80 <br />
    '''Using/Updating Java''' --> [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] <br />
    '''Unblocking Java''' --> https://support.mozilla.org/en-US/kb/unblocking-java-plugin
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • JScrollPanel basic problem

    Hi,
    would be grateful if someone could help out with this basic problem:
    I'm using a JTextArea that displays additional text added using the append() method in a java2 1.4 program, but I need it to automatically scroll down to show the latest line of text added whereas the panel by default requires the user to scroll down.
    Thanks,
    Allan.

    try looking at setCaretPosition(int position).

  • A sample project with basic problems to solve. Lets make it as a tutorial!

    The project is attached it's supposed to end up being a simple file manager, so you can browse the files and folders using the list component.
    I've done some part which is the attached one. Now I meet some problems since it's my first project and I need some help so I can solve them. I will try to make this project available to everyone because I think in it's end it will really cover the basics you need to know to get started making more complex stuff.
    So I zipped the php folder with just 1 file that currently has script for browsing the current directory. At this stage of the development I would only like to be able to make the files and folders that the php returns to be displayed correctly in the list, the files no icon and the folders with the folder.png icon. To have a nice padding so they look good in the list and have a nice hover.
    Problems:
    1) warning: unable to bind to property 'name' on class 'Array' (class is not an IEventDispatcher)
    Note: that's the first problem you will see when you setup the project, change the php server urls and run it.
    http://flexponential.com/2009/11/11/binding-warnings-when-using-object-in-a-list -dataprovider/ - this post has some info on the problem but the example is with static mxml data and I am not sure how to fix this when the data comes from the php.
    2) what's the proper way to make some customizations on the data received, so to speak I need to check if the type of the file is "dir", that would mean it's a folder and should display the folder icon and if it's not not to display any image infront of the file. I am really not sure how to do that so any solutions are welcome.
    3) What's the most convinient way to adjust the padding between each line in the list and padding for the icon and label inside the line.
    I think solving these 3 problems will be a huge step forward to finish and have a complete structure which could help more people understand how things work.
    Everyones help will be greatly appreciated

    Anamorphicizer didn't work.
    I can use Quicktime Pro cause I currently have Quicktime X on my computer (snow leopard) which doesn't have a Pro upgrade.
    Any myDVDedit is really confusing to use do I have to export the DVD into a VIDEO_TS file to fix it? I'm still puzzled

  • Menu Loop Script Transition Problem

    Hello,
    I have created a very basic DVD with a menu that needs to timeout after three loops. I created a loop script that works fine, but it shows the template's end transition between loops.
    I can take out the transition, and it fixes my loop problem. However, it removes the nifty transition completely from the main menu and sub-menus.
    Any suggestions?
    Thanks so much!
    All the best,
    ~Aaron~

    The way I find them is to load the template into the project then look in the assets tab... you will see that a folder has appeared in there. Open that and control+click on the bit you want to find. In the contextual menu, select 'reveal in finder'. A new window will open with that file in view...
    Or, go to your Library/Application Support/DVD Studio Pro/Apple/Templates folder - you'll find a shed load in there. Each is a package, so find the one you want, then control+click on it, choose 'Show Package Contents'. Navigate through to the resources folder and you'll see the background movie in there somewhere.
    Don't forget to make a back-up of the original template before you go adjusting things!

  • SAP SCRIPT code problem

    521
    - Heading for trans. w/out sp.G/L indicators (item sorting method 2)-
    Transactions without special G/L indicators
    522
    - Heading for trans. with sp.G/L indicators (item sorting method 2)-
    &T074T-LTEXT&
    523
    - Heading for open item list of line items -
    &ULINE(71)&
    <K>Invoice No,,Reference.,,Inv.Date,,                   Due date,,,,
                 Balance</>
    &ULINE(71)&
    PERFORM GET_DATE IN PROGRAM ZREPORT
    USING &BSID-BELNR&
    CHANGING &S_DATE&
    ENDPERFORM.
                                                                                    530
    - Line items    Customer open items -
    &BSID-BELNR&,,&RF140-BELEGNUM&,,&BSID-BLDAT&,,&S_DATE&,,
    FORM get_date tables
            int_cond structure itcsy
            outt_cond structure itcsy.
    BREAK SNAGI.
    tables : bseg.
    data : w_belnr type ITCSY-value.
    DATA due_date TYPE rfpos-faedt.
    READ TABLE OUTT_COND WITH KEY name = 'S_DATE'.
      IF sy-subrc = 0.
        outt_cond-value = S_itab11.
        MODIFY outt_cond INDEX sy-tabix.
       ENDIF.
    SELECT SINGLE
    shkzg zfbdt zbd1t zbd2t zbd3t rebzg
    FROM bseg
    INTO CORRESPONDING FIELDS OF bseg
    WHERE
    *bukrs = bukrs AND
    belnr = int_cond-value.
    *AND vbeln = belnr.
    CALL FUNCTION 'NET_DUE_DATE_GET'
    EXPORTING
    i_zfbdt = bseg-zfbdt
    i_zbd1t = bseg-zbd1t
    i_zbd2t = bseg-zbd2t
    i_zbd3t = bseg-zbd3t
    i_shkzg = bseg-shkzg
    i_rebzg = bseg-rebzg
    I_KOART = 'D'
    IMPORTING
    e_faedt = due_date.
    outt_cond-value = due_date.
    MODIFY outt_cond INDEX sy-tabix.
    ENDFORM.
    Now the problem is that,it is int_cond-value is always picking up the first invoice number.
    and the net due date is always same for all invoices..?
    should I loop in the sap script or in the form..?

    Solved my self.
    just placing the perform and endform in 530

  • Script language problem

    Hi friends,
    We designed a script for purchase order for taiwans, and it is
    displaying the incorrect Payment Terms when outputted (e.g. printed) using the ZEBT(own outtype) output type in language 'ZF'.  The Payment Terms text displayed in the ouputted form is not the correct text for the Payment Term on the Purchase Order.
    and it is displaying correct when the outtype in language 'EN'.
    can any suggest me on this, how it is happening.
    Thanks.

    HI friend..
    I have faced the same problem very long ago..
    Try to debug the script first in se71.
    At the main window look for the field netwr....
    Just do some checking there..
    Otherwise i can think for u  some other solution...
    regards..
    saravannan...

  • Basic Problems with Attributes and Data Loading

    Hi Specialists,
    I have a basic understanding Problem. I will explain it with a simple Example. I have to load Employee-Data from a file. For each Employee we have
    EmployeeNo
    EmployeeName
    EmployeeLanguage
    My Modelling:
    1 InfoObject Employee, with EmployeeNo as Key and EmployeeName as Text. For the EmployeeLanguage I create an additional InfoObject, in order to have an Attribute EmployeeLanguage at the InfoObject Employee. So far so good (I think).
    What kind of DataSources have I to create?? It is necessary to load the possible Languages first?? If yes, what kind of DS I have to choose, for loading only "English", "German", "Dutch". Attribute? Text?
    If not, the loading process is not possible, because one language exists more than one time in my flat file.
    Hope you can help me to see it clear.
    Thanks.
    Denise

    Hi Denise,
    I don't think you have to load all possible languages first. This is only necessary if you also want to load texts for EmployeeLanguage (example language german with texts "german", "deutsch", ...).
    Specify Employee as data target (in tab Master Data / Texts) and assign your InfoArea. There you will find your targets for texts and attributes, now create InfoSource for your file and assign update rules for both texts and attributes.
    Best regards,
    Björn

  • IWeb basic problems? Issue with galleries

    Hi,
    A while ago I posted a question about a photo gallery I was trying to display, which went something like:
    "Hello,
    Just finished putting together a website for my brother but having issues with the gallery. I have a portfolio page for his photos. When I'm in iweb the photo album covers scroll nicely between images and link straight to the photo gallery page. But when I put it online I click and nothing happens, as you can see here:
    http://www.guycollier.com/guycollier/EdmundCollier_Theatre_Photography_My_Portfolio/Edmund_Collier_Theatre_Photography_MyPortfolio.html
    Does anyone know why? This is driving me crazy. I have deleated and uploaded the sight several times from iWeb and also Filezilla and Cyberduck but have the same issues. Please help!
    ps. also if anyone knows how to set the title of the page in the browser then that would be great too!"
    I have finally got the time to get back to it and have been trying various options suggested by users, including deleating and rebuilding the gallery, but it still doesn't work either online or on a local hosting. It was suggested that I might have some basic iWeb problems. Any idea what these maybe and how they might be resolved?
    Thanks
    Guy

    Thanks for the suggestion. I rebuilt it and without making any changes to the layout it seemed to work ok. However, when I have made some minor changes (putting a frame around the images, changing the layout slightly, removing the navigation menus) it no longer works. Any idea? Might I be deleting something by accident?
    Guy

  • Indic script display problem - Open Office PDF export does

    I am trying to create a PDF document using iText (a Java library) and I found out that Indic script specificaly Malayalam Language Unicode is not displayed properly. Ligature substitution and reordering is not working at all. (See attached image1.png)
    However, Open Office does display the text properly (see attached image2.png)
    and when I export this document to a PDF document, the text in the PDF is fine (See attached image3.png).
    I am suprised at this bevahiour. The font I am using in all the three case is FreeSerif.ttf, which has support for Malayalam language and has the Open Type tables that is required for ligature substitutions.
    Please help.

    One difference I noted is this -
    Document Property (Fonts) of the PDF with problem shows FreeSerif , True Type (CID), Embedded
    and Document Property (Fonts) of the Open Office Exported PDF shows Free Serif, True Type, Embedded SubSet

  • Script execution problem

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

  • Help in script logic - problem in FOR loop

    Hi Experts,
    We are using BPC 7.5 SP08. I have written a FOR loop in script logic default.lgf which is as follows:
    *FOR %TIM_MEM%=%TIME_SET%
    *XDIM_MEMBERSET TIME =%TIM_MEM%
    *WHEN P_ACCT2
    *IS "OSDU"
    REC(EXPRESSION=[P_ACCT2].[ASSTCAINVURO][P_ACCT2].[COGSUPRVIPSA]/[P_ACCT2].[ASSTUPRVTAQTY],P_ACCT2="COGSUIPSAO")
    *ENDWHEN
    *COMMIT
    *NEXT
    As per my requirement, all this members: [ASSTCAINVURO], [COGSUPRVIPSA], [ASSTUPRVTAQTY] exists for months September to next year's August. But in my input schedule, the months are from August to next year's July(which is the company's fiscal year). Consequently the loop runs for month August to next year's July while I need to run the loop 1 month late(i.e. September to next year's August). This was achieved earlier by hard-coding the time members which we cannot afford as this requires to update these hard-coded member IDs every year.
    We have also tried using the "NEXT" property of TIME dimension as follows:
    *XDIM_MEMBERSET TIME =%TIM_MEM%.NEXT
    but %TIM_MEM%.NEXT doesn't get the month in 'NEXT'.
    Please suggest if there is any way out to solve this problem.
    Thanks in advance.

    Hi Appu,
    Even if you restrict the scope using the XDIM statement, your script will just run the number of times as per the for loop. Actually, in reality, the same calculation is happening again and again, in your code; since your calculation is not based on the time member.
    To use the for loop effectively, you need to incorporate the time member in your calculation.
    Please look at the below sample code:
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *FOR %TIM_MEM%=%TIME_SET%
       *WHEN P_ACCT2
       *IS "OSDU"
          *REC(EXPRESSION=<CALCULATION>,P_ACCT2="COGSUIPSAO")
       *ENDWHEN
    *NEXT
    And in your calculation, you can use statements like
    ([P_ACCT2].[ASSTCAINVURO],TMVL(1, [TIME].[%TIM_MEM%]))
    This will ensure that everytime (as per the for loop), the calculation works on separate set of data.
    Hope you got the idea.

  • Script PO problem

    Hi All,
    I am working on scripts for purchase order form .
    I am able to display the form perfectly.
    Problem is if i have 2 units of measure in  PO ex. OPU = 'EA' and ODU = 'ST'.
    then same line item is displaying two times.
    I am using elemnts 'ITEM_LINE_2F' and 'ITEM_LINE_3F'
    Can yanybody please provide solution where i am doing mistake.
    Thanks

    Hi ,
         Can u please give some more details like form name and which standard form u copied.
    Thanks,
    suma.

  • Script logic problem BPC 7.5

    Hi!
    We have a script logic that worked fine in BPC 5.1 but after our upgrade to BPC 7.5 it doesn´t work anymore.
    I will try to explain the part of or logic that doesn´t work anymore.
    We have 2 lines that will pass through the script, each line creates a temporary value  on KATEGORI ="#avskr1").
    Depending on the value created on  u201C#avskr1" it should do calculation A if the value is negative and calculation B if the value is positive. To do this we the following script logic:
    *WHEN GET(KATEGORI="#avskr1")
           *IS < 0
    *Calculation A
    ELS
    *Calculation B
    And this logic worked fine in BPC 5.1.
    If line X had -50 as a value in  u201C#avskr1"   and line Y had 75 as a value  in u201C#avskr1" , calculation A would be performed on line X and calculation B on line Y
    With the same example as above in BPC 7.5 calculation A will be performed on both lines.
    But if I change the logic to the following script logic in BPC 7.5:
    *WHEN GET(KATEGORI="#avskr1")
           *IS  = -50
    *Calculation A
    ELS
    *Calculation B
    Calculation A would be performed on line X and calculation B on line Y. It seems like the logic can´t handle <> signs in this script logic anymore.
    Regards
    Fredrik

    Hi!
    Unfortunately it didn´t help still the same error.
    And I just got an answer from SAP Support that there are a bug in the use of "Get whith When or lookup" in 7.5 SP03 which we currently are using, but it has been fixed in SP04. They just put up a SAP not 1515973 about the issue.
    Unfortunately they have no work around for this problem so I don´t know how to solve it untill we have installed SP04.
    Regards
    Fredrik

  • Pls. help, SQL script page problem

    Hi,
    Im using the Hands On Oracle Database 10g Express Edition for Linux. Im in chap06 already p. 218. I just uploaded the SYSMGMT1 script. After that I Clicked the script's icon but I cannot see any SQL DDL commands inside. Nothing happened. It said in the book that I supposed to see and browse the SQL DDL commands that make up the script. I tried to click RUN, nothing happened either. Is there some kind of a bug in my System? Pls. help me because I cannot continue this chapter's exercise if I cannot solve this first problem that I encountered here in chap06. Any help from the guys outhere is really greatly appreciated. Thank you.
    respectfully waiting,
    Len

    Hi, did you ever get a solution to this because I am having exact same problem - I cannot see the scripts if I upload them nor can I type them in from scratch as the area for seeing/editting the script doesn't seem to be accessible.

Maybe you are looking for