Hello Oleg,

This is the error message that appears right after *Starting compass/GPS [ok]

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
      php <file> [args...]
 -a               Run interactively
 -b <address:port>|<port> Bind Path for external FASTCGI Server mode
 -C               Do not chdir to the script's directory
 -c <path>|<file> Look for php.ini file in this directory
 -n               No php.ini file will be used
 -d foo[=bar]     Define INI entry foo with value 'bar'
 -e               Generate extended information for debugger/profiler
 -f <file>        Parse <file>.  Implies `-q'
 -h               This help
 -i               PHP information
 -l               Syntax check only (lint)
 -m               Show compiled in modules
 -q               Quiet-mode.  Suppress HTTP Header output.
 -s               Display colour syntax highlighted source.
 -v               Version number
 -w               Display source with stripped comments and whitespace.
 -z <file>        Load Zend extension <file>.
 -T <count>       Measure execution time of script repeated <count> times.



Oleg wrote:
Dear Scott,

Did you get the serial-to-usb cables from us? Could you use them to check the bootlog messages? (I use 'minicom' program in kubuntu) At the boot time you should be able to see:

1a. message in minicom during reboot with your /etc/launcher.conf.xml (the same when run "php /etc/init.d/launcher.php"):

     * USB hub already
    initialized...                                      [ ok ]
     * Setting CMOS clock from the system time...                [ ok ]
     * Starting video
    streamer...                                            [ ok ]
     * Starting
    compas/GPS...                                             [ none ]
    *launcher: run command: (/usr/local/sbin/camogm
    /var/state/camogm_cmd 2>&1  &) >  /dev/null
    launcher: finish*


1b. If the /etc/launcher.conf.xml is empty:

     * USB hub already
    initialized...                                      [ ok ]
     * Setting CMOS clock from the system time...                [ ok ]
     * Starting video
    streamer...                                            [ ok ]
     * Starting
    compas/GPS...                                             [ none ]

    *launcher: nothing to launch*


2. from telnet / http://192.168.0.9/phpshell.php

    # ps | grep camogm
      843 root     20832 S    camogm /var/state/camogm_cmd
      845 root      1472 R    grep camogm
    #


3. http://192.168.0.9/camogmgui/camogm_interface.php?cmd=status should have an output similar to the contents of the attached camogm_state.txt. And if the camogm is not running then you won't be able to access the page.

Best regards,
Oleg

On 18 February 2010 12:15, Scott Janz <[email protected] <mailto:[email protected]>> wrote:

    Hi Oleg,

    I tried both hand editing the launcher.conf.xml file and your
    method below without success. I did verify that /etc/rc3.d
    contains s99launcher.php which is symlinked to init.d/launcher.php

    contents of /etc/launcher.conf.xml:


    <launcher_cmd>
    <launch_example program="[patch]program_name" log="log_file_name"
    background="true|false">
    'log' and 'background' is optional attributes; program can be with
    a full path
    </launch_example>
    <launch program="/usr/local/sbin/camogm /var/state/camogm_cmd"
    log="" background="true"/>
    </launcher_cmd>


    regards,

    -scott
    Oleg Dzhimiev wrote:

        Dear Scott,

        Could you please send your /etc/launcher.conf.xml?

        The launcher.php is executed after the boot - you don't need
        to enable anything (there should be a link in /etc/rc3.d -
        "S99launcher.php") and it runs the programs from the list in
         launcher.conf.xml. I've just tested this - it works fine.

        I added the record using launcher.php:
        
http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php
        
<http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php>
        
<http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php
        
<http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php>>



        "launcher,conf.xml" example:
        <launcher_cmd>
        <launch_example program="[patch]program_name"
        log="log_file_name" background="true|false">
        'log' and 'background' is optional attributes; program can be
        with a full path
        </launch_example>
        <launch program="/usr/html/script.php" log="" background="true"/>
        </launcher_cmd>

        Best regards,
        Oleg
        Elphel, Inc.

        On 12 February 2010 14:42, Scott Janz <[email protected]
        <mailto:[email protected]> <mailto:[email protected]
        <mailto:[email protected]>>> wrote:

           Ok, I added the appropriate command to
        /etc/launcher.conf.xml and
           it works properly from the command line:


           php /etc/init.d/launcher.php

           starts camogm in the background, writes to
        /var/log/auto.log etc.
           But it will not automatically start at boot time. Is there
           something I need to do to enable launcher.php to run at boot? I
           have already checked to make sure it is executable.

           thanks,

           -scott


           Sebastian Pichelhofer wrote:

               It was initially added in 2008 so you should already
        have it
               in your camera.

               Regards Sebastian

               Janz, Scott J. (GSFC-6133) wrote:
Thanks Sebastian, is the launcher installed in
        8.0.4.3 or
                   do I need to upgrade to latest distro?

                   -scott

                   On Feb 5, 2010, at 5:25 PM, Sebastian Pichelhofer
        wrote:

I am working on a GUI in the system preferences for
                       the launcher.php (/etc/init.d/launcher.php) script
                       that reads an xml file and then starts the
        appropriate
                       commands.

                       This launcher.php is already installed but not
        doing
                       anything at the moment (empty xml with just a
        demo entry).
                       I would suggest to look at
        /etc/launcher.conf.xml as a
                       starting point.

                       Regards Sebastian

                       Janz, Scott J. (GSFC-6133) wrote:
Hopefully a simple question, what is the
                           recommended method of autostarting camogm on
                           camera boot?

                           thanks!

                           -scott




                           _______________________________________________
                           Support-list mailing list
                           [email protected]
        <mailto:[email protected]>
                           <mailto:[email protected]
        <mailto:[email protected]>>

http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com




--

---------------------
Dr. Scott J. Janz
NASA/GSFC code 613.3
Building 33 Room E310
Greenbelt, MD 20771
ph. 301-614-5987
fax 301-614-5903


_______________________________________________
Support-list mailing list
[email protected]
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com

Reply via email to