Language other than bash for calling external programs

Hi,
sorry for the unspecific title, I couldn't think of a better summary.
The problem is this: I have written a script to encode a DVD to H264 and Vorbis. Since it basically just performs some (OK, by now: A lot of.) management and then calls a external programs, Bash was the obvious choice.
However, the administrative stuff the script does (evaluating user input, calculations etc.) was already a nightmare to code in Bash (lack of arithmetic, lack of data types, proper functions, lack of c-like structs etc.), and I now want to make it even more flexible in what the user (me) can ask of it (it's also going to use a config file, which is another thing that gets ugly fast). Frankly, I can't stomach that.
So the question is this: What language would be sensible for a program the most important function of which is calling other programs?
Simply executing them from the main program isn't enough, unfortunately, because I want to make use of multicore system by for example simultaneously extracting streams and encoding them (right now that is done through named pipes), ideally I'd need a way to multithread not internal functions/routines but external programs (Through pipes or whatever).
I'd prefer an interpreted language, but it's not a requirement.

I second what peets said. Perl is definitely you're best option here, in my opinion anyways. It has the best (by which I mean easiest) system interface of any scripting langauge I've worked with, and if you want a simple configuration file reader, perl's regex'es are king. Perl also takes a lot of features from the shells, such as the file test operations. If the project get's really big and hairy though, it might be worth considering python as a cleaner, stricter alternative.
Hope that helps!

Similar Messages

  • How to call external programs?

    I have seen people call external programs through LabVIEW and was curious what functions you could use to do this.
    I'm pretty sure its using one of the ActiveX functions  or maybe 'open application reference .vi'.
    Can anyone tell me (or show me) a quick example of how to open an external program (ie excel,  notepad, etc) programatically
    Cory K
    Solved!
    Go to Solution.

    Cory K wrote:
    Where did they get this:
    Kudos for going from "I don't know to start" to "Let's stump Ben" with only the second post to this thread.
    I either copy it from an example or try to browse to it.
    NOTE:
    If you plan to work with MS ActiveX objects, I found it very helpful to do a custom install of Office and make sure the help files for VBA are loaded. These will at the least give you an idea of what the methods are and what parameters go with each.
    Ben
    Message Edited by Ben on 12-31-2008 11:09 AM
    Message Edited by Ben on 12-31-2008 11:13 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Browse.PNG ‏24 KB

  • Print preview of the PO -languages other than English is not appearing.

    Hi Experts
    In the Print preview of the Purchase Order  -languages other than English is not appearing.
    When I  create a PO for a chinese vendor , in the print i can see only the ##### characters.
    Pl let me know how to solve this issue.
    Note :
    Vendor language is maintained as Chinese  in vendor master & same is getting copied in the PO heaader communication  tab.
    With outtype LP01 it works for the print preview , however when sent as a PDF it wil be with #### charaters.
    But when i select LOCL it gives  #### charaters for both print & PDF.
    Thanks
    Dkmurthy

    are the replacements if the character cannot be printed on the chosen device.
    There are several OSS notes adressing this issue. Contact your basis team.

  • ESS BP DC view displaying the UI items in diff language, other than english

    Hi Folks,
    I have imported the ESS BP into my NWDS using NWDI.  But when iam opening cat(timesheet ) related DC, all the views are displaying labels in different language, other than english.  How to get those displayed in English.
    Kindly guide us, if you can...
    Thanks & Regards,
    Ravi

    Hi Ravi,
    All the texts in the view (for the labels, buttons, etc) are stored in the xlf file associated with it.
    These xlf files you can find in the Navigator view under project source folder.
    Kind Regards,
    Nitin
    PS: Also, you can check the default language of the project (check this under Properties for the project).

  • Handling  languages other than  English in Java ...........................

    hi,
    I am reading several feeds which has titles/text in languages other than english like chinese, japan, Arabic etc..........
    Example title in other language : 认清世界 读懂中国: 老百姓将杨佳案矛头指向沪政法书记吴志明
    when i read such string in java program and display it iam getting all question marks instead of language specific characters.
    as below : ???????????????????(?)
    Can any one guide on how to resolve this language specific issue ?
    --rama                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    THanks all i have resolved the problem.
    The below links explains you what is the problem and how to solve it clearly.
    http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/
    Problem :
    The characters which are in the feed are UTF-8 encoded characters ,
    where as by default the tomcat server assume that all the characters are encoded in ISO-8859-1
    as the result Tomcat is trying to read the characters in the feed (which are UTF-8 encoded) in ISO-8859-1 encoded format because of which it could not able to print the international character's.
    How to resolve?
    ~~~~~~~~~~~~~~~
    we need to say to the java servlet that those characters are UTF-8 and are not the default ISO encoded
    How to say?
    ~~~~~~~~~~
    URL ffeedurl = new URL(feedurl);
              HttpURLConnection.setFollowRedirects(true);
              URLConnection connection = ffeedurl.openConnection();
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    Please observe the below line the second argument of InputStreamReader constructor ....................it is UTF-8
    which say to the servlet that characters retrieved from the URL are UTF-8 Encoded are not encoded in the default ISO format
    InputStreamReader defaultReader = new InputStreamReader(httpConnection.getInputStream(),"UTF-8");
    That's it. in adddition to that you need to take care of the below things.
    1) mysql connection should be as below
    jdbc:mysql://localhost/databasename?useEncoding=true&characterEncoding=UTF-8
    instead of
    jdbc:mysql://localhost/databasename
    2) in mysql database , each table , each text/varchar column should be of UTF-8-general-ci
    3) if you are using log4j and want ot see the UTF-8 characters in the log messages you should add the below param to each appender
    <param name="Encoding" value="UTF-8"/> (i don't know even after setting this i couldnot able to see the characters properly in log file/console)
    4 ) important links which talks about this problem and solution:
    [http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/ |http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/ ] (to clearly undestand what the problem is and how to resolve)
    [http://blogs.warwick.ac.uk/kieranshaw/entry/utf-8_internationalisation_with|http://blogs.warwick.ac.uk/kieranshaw/entry/utf-8_internationalisation_with]
    [http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps|http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps]
    --rama
    Edited by: Ramaa on Oct 17, 2008 3:34 AM

  • To call external program

    I would like to know if exists a way of to call external program in windows ce. I'm using cvm J9.

    I don't know how is configured Windows CE, but Windows ME is MIDP 2.0, and formRequest(URL) do it (but work only since MIDP 2.0).
    It's work, but in my case, i try to add arguments, and it doesn't work with : URL = "/Program Files/MyProg/myProg.exe arg1 arg2". If somebody have found a solution...

  • Recognizing languages other than English...

    I want a JAVA program to recognize languages other than English. (i.e) if I use any other language in the midst of a program, I have to tell the JVM to recognize that language. What is the way to do that?
    Thank you...

    I want a JAVA program to recognize languages other
    than English. (i.e) if I use any other language in
    the midst of a program, I have to tell the JVM to
    recognize that language. What is the way to do that?
    Thank you...you mean the compiler ?
    as far I know , compiler only know keywords
    here list of keywords that used to develop java program
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

  • Recognising languages other than english

    does quicktime player regonise languages other than english?
    i have a lot of chinese songs with chinese wording as titles and when i play them it seems not to recognise it and just shows the song title as some funny symbols.
    Anyway to solve this problem?

    I'm sorry I made a mistake.
    .m4a (in truth .mp4) use Unicode to storage ID3 tags such as Name and Artist.
    Treating MP3s, most players only see ID3v1 tags as they are non-Unicode. ID3v2 tags can optionally be Unicode depends on the player and/or encoder.
    Quicktime .mov files can use both Unicode and non-unicode encodings for tagging.
    iTunes for Windows and iPods support non-Unicode song tags and will display them in the encoding "codepage" in which Windows is set for processing non-Unicode text. But it's unknown whether Quicktime for Windows supports this or not.
    Message was edited by: yksoft1
    Message was edited by: yksoft1

  • Page Template w. default language other than US ??

    How du I create a Page Template w. default language other than US ??
    Best regards
    Christian

    The default language is defined by the page group, not by the page template. You can't change the default language for a page group, but you can define the default language when the page group is created.
    Regards,
    Jerry
    PortalPM

  • Certificate issue in jdevloper tool for calling external issue

    Hi
    while Invoking the external application wsdl in SCA as a web sevice i am getting error in Jdeveloper tolll as
    "Error while Reading wsdl file: https://abcd?wsdl
    WSDLException: FaultCode=PARSER_ERROR:Failed to read wsdl file at: https://abcd?wsdl
    caused by:javax.net.sslHandshakeException, :
    javax.net.sslHandshakeException:sun.security.validator.validatorException:No trusted certificate found"
    Is it the issue with Jdev tool ?. http url i am able to invoke not https.
    Where to configure certificate in jdeveloper tool for calling external service.
    Thank
    Neeraj

    extract the certificate for your https site and add this to your trusted store.
    if you are using the default trust, it should be located under WLSERV~1.3\server\lib\DemoTrust.jks.
    you can either use keytool or a tool like portecle for the same.

  • How can I buy films in languages other than German in Germany? Quite disappointed, i would line to watch films in Original language and not dubbed in strange ways...

    How can I buy films in languages other than German in Germany? Quite disappointed, i would like
    to watch films in Original language and not dubbed in strange ways...

    You are at the mercy of the content owners/copyright holders. They decide what the Apple can sell in each iTS.
    MJ

  • Does Mac OS 10.8.2 support dictionary in language other than English.

    Does Dictionary in Safari and Mail support language other than English (say Chinese and Japanese)?  In iOS, I can simply highlight a word, press "Define" and boom...result is there.  But in Mac OS, I tried highlighting Chinese and Japanese words, dictionary replied with "Result not found".  Is this a setting issue or foreign language dictionary is not yet available in 10.8.2?  Thanks!

    Wow.....that's fantastic!  I couldn't understand a word from my supplier before.  Now it works, thanks Tom! 

  • Printing payement advice note in language other than english

    Dear Expert Users
    We are trying to print payment advice notes in different local
    languages.
    We have maintained the vendor language as the local language(ex:
    Japanese)and tried printing the payment advice note and its appearing
    in English.
    Please note that we have maintained the transalation of the forms in
    local language.
    Any assistance in this regard will be highly appreciated .
    Pravin

    1) Can you check at the condition record level which language is your prinout getting fired.?
    2) You can also try logging in japanese language and check if you can see your standard texts correctly.
    3) Also check if your printer supports language other than English..

  • Writing in pages in Afrikaans. Spellcheck keep on correcting to dutch. Switched off spell check and checkeed keyaboard settings. Where do I get languages other than what Apple offer and where is the dictionary, Library, spelling files.

    Writing in pages in Afrikaans. Spellcheck keep on correcting to dutch. Switched off spell check and also looked in System preferences - keyboard. this stops the "Auto-correct" but does not help me with Afrikaans or other language spell check.  Where do I get languages other than what Apple offer and where is the dictionary, Library, spelling files.

    You are basically limited to what Apple deigns to offer.
    Try LibreOffice [free] which has a huge selection of languages.
    Peter

  • Runtime Where Clause cause on Language other than en-us ORA-01422

    Hi All,
    I have a very strange situation.
    It seems the "Runtime Where Clause" does n't get pick up when I toggle to different language other than en-us
    If I set my language on the brower to user en-us, it works, fine, select 1 record.
    If I change to Spanish or other Language, I got ORA-01422, It didn't seem "Runtime Where Clause" working at all.
    Please help.
    Or How shall I find out if the "Runtime Where Clause" got apply at all ?
    Best
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    ok Scott,
    Now I really need your advise.
    My main reason to use Runtime Where Clause is because I have more than 2 columns to compose the primary key. Since APEX has problem to apply "Runtime Where Clause" on different language.
    Here is what I did to get around.
    In Source: Automatic Row Processing (DML)
    I specify like this
    "F|#OWNER#:CMNTS:P71_HCC_APRVD_ID,:P71_VER_NO.:P71_CMNT_ID:HCC_APRVD_ID,VER_NO,CMNT_ID"
    Then it works, but of cause, due to the APEX limitation, when I go back to PAGE definition, it changes back to just one column, so the key is DON"T SAVE it.,re-publish the language
    I don't know id there any other side effect
    --John

Maybe you are looking for

  • Java 2D and 3D issue

    Hello everyone, I'm new to Java graphics and have been trying to figure out the best way to improve my particular application. It is dynamic and refreshes at about 75Hz. It contains lots of data points and seems to flicker a lot. I've concluded that

  • PASS STRING IN TO WHERE CLAUSE

    Hi All, i'm facing a problem when i used SELECT * INTO TABLE ITAB FROM T000 WHERE T000~MANDT IN (810, 812, 800). then it's gives three values which is right according to requirement. but i hve to use a string n pass these values by string so i develo

  • Product category in srm should over write the punch-out catalog category

    Hello Gurus, I have a requirement to overwrite the product category which is coming from the punch-out catalog with the SRM product category. Exactly saying i am looking for a mapping program. Because the product category schema in Punch-out Catalog

  • White 'line' at top of images edited in iPhoto '09?

    Hi all, I get a (very thin) white line on the top of my images in iPhoto '09. It occurs on some (not all) images when I sharpen them. Anyone have any clues? I have posted an example here. Note that this does not happen in Aperture 2 but I find iPhoto

  • Quality/settings issue?

    Recently I made copies of 8 cds that I had imported into iTunes 10 and was disappointed to find that (upon playback) that nearly half of them had sections that dropped out or skipped. They sounded much like old vinyl records when they would skip. I u