PHP include path for command line applications

I'm packaging my first contribution to the AUR: a package for Boris, a tiny REPL for PHP.
The issue I'm finding is that it includes a file relative to where the bin is and it somewhat conflicts with Arch's recommendation for using /usr/lib/pkgname for shared files. You can see the offending line here: https://github.com/d11wtq/boris/blob/ma … n/boris#L6
I fixed it with sed, but I'm not happy with the solution I wrote. I hoped for PHP shared libraries to have a $PATH such as Python packages, but it seems like it doesn't (by default). See my pkgbuild here: http://sprunge.us/TYgj

I do it using the registry.  Here is a post where I have a AutoIt EXE scan for what versions of the runtime engine are installed.  And then it runs an EXE that is compatible with the run-time engine or development environment installed.
http://lavag.org/topic/17803-run-exe-based-on-installed-run-time/
But you can also do it from a VI.  Attached is a VI that will find the Run-Time versions installed and development with path to the EXE/DLL.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
LabVIEW Versions Installed Registry.vi ‏37 KB

Similar Messages

  • KeyListener for a command line application

    Hi, I'm currently writing a small command line application aimed at interacting with a database. I would like to implement features such as an automatic completion of the names with the TAB key. My problem is that the objects that sends KeyEvent are AWT components, and they do that when they have the focus. So I was wondering if any of you had already done such a thing. Until now, I tried lots of things, but there is no way I can catch a KeyEvent within the command line...
    Souk

    Write your own input routine that internally reads a character at a time instead of a complete line or string and test the character for tab etc. and take the appropriate action. This also means you will have to/can implement editing keys.
    If there is a Java class that has an dictionary to compare input with I do not know, because the last time I wrote a tool without gui was in 1985.
    Regards
    SH

  • Telnet Server or Command Line Applications

    Hi,
    Bit of a random question to ask seeing as no one has asked it before...but...
    Is there a TELNET SERVER or command line application around for the N series phones? I'm keen on doing some console work with my N82 to explore the symbian interface more.
    Any ideas?
    Owned: Nokia 3510i, Nokia 3120, Nokia 6230i, Nokia 6233, Nokia N73, Nokia N82.
    Current: Nokia N900!

    24-Mar-2008 02:25 PM
    psychomania wrote:
    This has been posted a few times recently for other models and I think someone posted a link to a useful app that works.
    Are you sure of this, Psycho?
    I've seen links to telnet and ssh CLIENTS for S60 here, not for servers.
    Message Edited by grschinon on 24-Mar-2008 02:38 PM
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Can the command line application be extended?

    I would like to add command like keys etc..Is this possible?

    Correct me if I am wrong, from what I understand, beanShell is a scripting language which interprets the Java language. Yes, I could connect to coherence cache and run any commands I want. However, that won't include the commands which are already prefined in the tangosol command line, would it?
    If I am wrong, I would appreciate if you could show me an example of beanShell and the command line application.

  • Since updating to OS X Mavericks I get a continuous update request for command line developer tools.  How do I stop this?

    Since installing OS X Mavericks, automatic updates keep producing download demand for Command Line Developer tools 6.0 and 6.1.  I don't need these but cannot seem to stop the updates available, even if they are downloaded and installed.  Can anyone tell me how to stop this?

    Try re-indexing Spotlight.
    Spotlight – Re-index

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • FM to select the file path for download into application server

    Hello,
    I need a FM to select the file path for download into application server. It is a F4 help .
    Its functionality should be simmilar to the one used for presentation server i.e. as fol
    CALL METHOD cl_gui_frontend_services=>file_save_dialog

    Hello,
    What about F4_DXFILENAME_TOPRECURSION? You can check other FMs of the group DX_FILE.
    BR,
    Suhas
    PS: I think these FMs are not released by SAP, so need to be cautious while using these

  • Command line applications

    Hi,
    does anybody know how to create a class that represents a command line application that would use a previously created class's methods and variables?
    Jamie

    Is this what you're after?
    You can compile these 2 together as is with InUser.java - though better to compile the class In.java seperately then you will be able to use it elsewhereimport java.io.*;
    // Note: this class has NO "main()" so it cannot work alone
    class In{
       private static InputStreamReader isr = new InputStreamReader(System.in);
       private static BufferedReader in = new BufferedReader(isr);
       public static void prompt(String s) {
          System.out.print(s);
          System.out.flush();
       public static String getString(){
          String str = null;
          try {
             str = in.readLine();
          catch (IOException e){
             System.out.println("Error: In.Read() "+e.getMessage());
             System.exit(0);
       return str;
       public static int getInt(){
          int ii = 0;
             try {
             ii = Integer.parseInt(in.readLine() );
          catch (NumberFormatException nfe){
             System.out.println("Error: the number is not convertable to an int");
          catch (IOException e){
             System.out.println("Error: In.Read() "+e.getMessage());
             System.exit(0);
       return ii;
       public static double getDouble(){
          double dd = 0D;
             try {
                dd = Double.parseDouble(in.readLine() );
             catch (NumberFormatException nfe){
                System.out.println("Error: the number is not convertable to a double");
             catch (IOException e){
                System.out.println("Error: In.Read() "+e.getMessage());
                System.exit(0);
       return dd;
    // And the user with file with a main signature:
    public class InUser{
       public static void main(String[]args){
          System.out.println("\nExample 'In.java' with Readln:");
          In.prompt("Please enter your name: ");
          String name = In.getString();
          System.out.println("Welcome "+name); 
          In.prompt("Please enter a whole number: ");  
          int ii = In.getInt();
          System.out.println("The number squared is "+(ii*ii)); 
          In.prompt("Please enter a fraction number: ");  
          double dd = In.getDouble();
          System.out.println("The numbers square root is " +Math.sqrt(dd));    
    }

  • Declaring UTIs for command line utilities?

    I'm working on some command line tools for manipulating Intel Hex files and I'd like to include a Quick Look generator. It appears there aren't any built-in UTIs for this file type, so I need to declare them, which apparently is handled by an application bundle. But command line utilities don't have an application bundle. So where do I put the plist to declare the new UTIs?

    The part of the plist for specifying the UTIs that the generator can handle doesn't seem to allow for defining a new UTI, so I'm assuming it has to be done someplace else.
    Here's the documentation I'm looking at: http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/Q uicklookProgramming_Guide/Introduction/Introduction.html#//appleref/doc/uid/TP40005020-CH1-SW1
    From Listing 3-1
    <array>
    <string>SUPPORTEDUTITYPE</string> // change this!
    </array>
    it looks like the generator plist can only specify existing UTI strings. I don't see where to specify all the other bits, like file name extension. Am I missing something?

  • Develop a command-line application using LabVIEW

    Hi,
             Is it possible to generate a command line(CLI) executable using LabVIEW? This CLI exe will be called with certain command line arguments by another application (written in Visual Basic). The LabVIEW Run time engine can be installed separately on the host PC.
    Thanks for your help
    Siddharth 
    Solved!
    Go to Solution.

    There is an example that ships with LabVIEW that shows how to read the command line arguements from an application. THe name of the VI is CommandLine.vi. It is extremely basic though. The power of command line arguements really comes from how you define and parse them. I recommend allowing your command line arguements to be order independent and that they require a label. For comand lines I prefer to use a single letter for the label. Full words are nice but then your command line gets very long. For the applications that we write we allow both the '/' (DOS/Windows style) and the '-' (Unix/Linux style) to designate a command line label.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Assigning parameters dynamically for command line processing

    hi,
    how do i put the parameter dynamically for post processing in the file adapter?
    for processing UNIX scripting in the commandline in the receiver file adapter i need to use paramaters, like file name and directory dynamically. how can this be achieved?
    regards,
    meenakshi

    Hello,
    Only two parameters are availible in OS command in SAP PI.
    When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
    %f (file name)
    %F (absolute file name including path)
    BR,
    Dzmitry

  • SWF and XML for Command line compiling for iOS

    I need to compile an application for iOS using command line ADT. I need to pass the SWF and XML to the ADT command. But which ones do I need to pass as the ones available are in the debug folder and I don't think they are well optimized for mobile publishing. Also the XML has debug with id in it.

    Hi,
    Yes, Flash Builder, by default, doesn’t save release swfs. A simpler way to get them however be to go to Project->Properties->Flex Compiler and set
    ‘-debug=false’ in compiler arguments.
    Now the swf generated in bin-debug will be a release swf.
    Please let us know in case you face any issues.
    Thanks,
    Amish.

  • Read in file name + path using command line arguments

    Hi guys,
    I am trying to use command line arguments to read in the name of two files. The code below works as long as the files are on the class path.
    public class cmdLineArguments {
         public static void main(String[] args) {
              String xmlFile1 = args[0];
                    String xmlFile2 = args[1];
              System.out.println ("\nXmlFile1: " + args[0] + "\nXmlFile2: " + args[1]);
    }I would like to be able to read files that are not on the class path as well by entering their full path along with their names.
    In other words, It works if I type:
    C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs file1.xml file2.xmlbut not if I type:
    C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlWould anyone please explain how I can edit the code to make it work? I guess I could take them both as a String, modify them manually (add a \ to it etc) but is there an easier way to do it? Even a reference to a tutorial, article etc about this would be very much appreciated.
    Also, any idea why a code would compile and run fine in Eclipse but would create an error from command line?
    Thanks a lot.

    You need to learn about cmd.exe which is used to process the command line. The arguments passed to any program is the command line split at white space so your command line arguments of
    c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlis turned into an array of
    "c:\Documents", "and", "Settings\user\desktop\file1.xml", "c:\Documents", "and", "Settings\user\desktop\file2.xml"In other words instead of 2 arguments you actually have 6.
    To get round this the file names need to be quoted
    java cmdLineArgs "c:\Documents and Settings\user\desktop\file1.xml" "c:\Documents and Settings\user\desktop\file2.xml"

  • Openoffice quickstart for command line available

    hi
    i put the ooqstart package up to staging
    (since staging is not reachable build it yourself it's a very small app)
    now it is possible to use the openoffice quickstart with every wm/de you want
    all you have to to is to put a bash script in the autostart directory of your favourite de/wm
    here is the pkgbuild:
    # Contributor : Tobias Powalowski <[email protected]>
    pkgname=ooqstart
    pkgver=0.8.3
    pkgrel=s1
    pkgdesc="OpenOffice Quickstarter is a small command line tool for caching OO in memory"
    url="http://ooqstart.sourceforge.net"
    depends=('gcc')
    source=(http://switch.dl.sourceforge.net/sourceforge/ooqstart/$pkgname-$pkgver.tgz)
    install=ooqstart.install
    build() {
      cd $startdir/src/$pkgname-$pkgver
       make ooqstart || return 1
       mkdir -p $startdir/pkg/usr/bin
       mv ooqstart $startdir/pkg/usr/bin
    md5sums=('f3c15a29e8bbd7780972e69f11f564a4')
    ooqstart.install:
    # arg 1:  the new package version
    post_install() {
    cat << EOF
    ==> Add the following script to your Autostart directory to enable Quickstart on    login:
    !# /bin/bash
    killall -9 ooqstart
    killall -9 soffice.bin
    ooqstart /opt/openoffice&
    EOF
    # arg 1:  the new package version
    # arg 2:  the old package version
    post_upgrade() {
      /bin/true
    # arg 1:  the old package version
    pre_remove() {
      /bin/true
    # arg 1:  the old package version
    post_remove() {
    cat << EOF
    ==> Remove the script from your Autostart directory if you have used it
    EOF
    op=$1
    shift
    $op $*

    I received the following build error:
    ==> Validating source files with MD5sums
    ooqstart-0.8.3.tgz ... Passed
    ==> Extracting Sources...
    ==> tar --use-compress-program=gzip -xf ooqstart-0.8.3.tgz
    ==> Starting build()...
    g++ -g -DVERSION='"0.8.3"' -Wall -Werror -I. -O2 -o model.o -c model.cxx
    cc1plus: warnings being treated as errors
    model.cxx: In function 'int startProcess(const char*, const char*, const char*, const char*)':
    model.cxx:72: warning: missing sentinel in function call
    make: *** [model.o] Error 1
    ==> ERROR: Build Failed. Aborting...
    Thanks.

  • Code for command line

    Hello everyone,
    I have a SQL SSIS package that I would like to trigger
    through Cold fusion. I looked into SQL help, it said that using
    "dtexec" at command line will work. My question is: how do I get
    Cold Fusion do a command line job? What is the sytext/code for
    that?
    Thanks in advance.

    Lei Hu wrote:
    > Hello everyone,
    > I have a SQL SSIS package that I would like to trigger
    through Cold fusion.
    > I looked into SQL help, it said that using "dtexec" at
    command line will work.
    > My question is: how do I get Cold Fusion do a command
    line job? What is the
    > sytext/code for that?
    >
    > Thanks in advance.
    >
    The <cfexecute...> tag allows ColdFusion to run command
    line code. It
    can take a lot of trial and error to get that to work
    properly. User
    permissions of the ColdFusion server standard output versus
    standard
    error, version of ColdFusion are all potential hickups with
    this type of
    code.
    Take it slow, one step at the time is the best advice I can
    give you for
    using <cfexecute...>.
    Ian

Maybe you are looking for

  • Crystal report issue while running through online in Peoplesoft

    Hi, Message log shows: Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running View log shows: Message Set Number: 0 Message Number: 0 Message Reason: Invalid User ID and password for signon. (0,0) I am getting the above err

  • Dynamic parameter not populating

    Post Author: lk4772 CA Forum: Crystal Reports hello. we have crystal reports server xi r2 sp2, and crystal reports xi sp3 installed. we also this past weekend upgraded our database server (windows 2003 server). however now, when trying to add a dynam

  • Do you have to get special packages for the iphone?

    Do you have to get special packages, that you have to pay for monthly, in order to get say internet, GPS, weather, etc?

  • Blazeds Proxy Service Error

    Trying to call an http service through a blazeds proxy service and getting this error faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: anyone see this b4?

  • Command-Tab macro not functional!

    After I upgraded to 10.4.7, the Command-Tab macro is no longer functional, I need to know what is going on. I thought that maybe since I've upgraded to Tiger, I've had to use Tiger Cache Cleaner to clean the system caches in order to make the upgrade