Changeset 17821


Ignore:
Timestamp:
05/10/14 14:22:16 (11 years ago)
Author:
tbretz
Message:
Make it easier to debug printing the executed command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.php

    r17818 r17821  
    197197    return header("HTTP/1.0 400 File '".$file."' not found.");
    198198
    199 $file = popen("/home/fact/FACT++/getevent ".$filename." ".$event." 2> /dev/null", "r");
     199$command = "/home/fact/FACT++/getevent ".$filename." ".$event." 2> /dev/null";
     200$file = popen($command, "r");
    200201if (!$file)
    201202    return header('HTTP/1.0 400 Could not open pipe.');
     
    204205$fil = array();
    205206
    206 $fil['runType']       = trim(fread($file, 80));
     207$fil['runType'] = trim(fread($file, 80));
    207208if (feof($file))
    208209   return header('HTTP/1.0 400 Data not available.');
Note: See TracChangeset for help on using the changeset viewer.