exec(), passthru() not returning stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have $exccmd = 'c:\gpsmancer\gpsbabel\gpsbabel.exe -i
garmin,get_posn -f com4 -o kml -F con: ' ; in my code.
When the statement is executed on the winXP command box, the return is
a series of  xml lines in the general form
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1"; ...

When I execute
 $output =  passthru($exccmd, $return);
There is no output returned
There is no output when the exec() statement is executed as well.
The passthru() and exec() commands work as expected in other places in
the code when other commands are executed. Perhaps it's a Gpsbabel thing?
gpsbabel works correctly when the output goes to a file.


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux