Changeset 40478 for branches/czw_branch/20170908/ippMonitor/raw/ipp.php
- Timestamp:
- Jun 27, 2018, 3:22:45 PM (8 years ago)
- Location:
- branches/czw_branch/20170908/ippMonitor
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
raw/ipp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908/ippMonitor
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/ippMonitor merged eligible /trunk/ippMonitor merged eligible
-
Property svn:mergeinfo
set to
-
branches/czw_branch/20170908/ippMonitor/raw/ipp.php
r40381 r40478 826 826 // these are defined by site.php 827 827 global $PERLLIB; 828 global $NEB_SERVER; 828 829 global $BINDIR; 829 830 global $SITE; 830 global $PSCONFDIR;831 global $PSCONFIG;832 833 putenv("PSCONFDIR=$PSCONFDIR");834 putenv("PSCONFIG=$PSCONFIG");835 831 putenv("PERL5LIB=$PERLLIB:"); 832 836 833 $PATH = getenv("PATH"); 837 834 putenv("PATH=$BINDIR:$PATH"); 838 839 // be careful of the definition of PATH in SITE: cannot contain HOME 840 echo "<br>ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n"; 835 putenv("NEB_SERVER=$NEB_SERVER"); 836 841 837 exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status); 842 838 843 839 if (0) { 840 echo "PERLLIB: $PERLLIB<br>"; 841 echo "NEB_SERVER: $NEB_SERVER<br>"; 844 842 echo "basename: $basename<br>"; 845 843 for ($i = 0; $i < count($output); $i++) { 846 844 echo "output $i: $output[$i]<br>"; 847 845 } 846 echo "path: $PATH<br>"; 848 847 echo "output: $output[0]<br>"; 849 848 echo "status: $status<br>"; 850 849 echo "filename: $filename<br>"; 851 exit ();850 // exit (); 852 851 } 853 852 854 853 $filename = $output[0]; 855 854 if ($status) { 856 echo "log file ($filerule, $basename) not found<br>\n"; 857 return; 855 if ($status == 1) { 856 echo "<b>log file ($filerule, $basename) not found<br></b>\n"; 857 echo "ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>"; 858 return; 859 } else { 860 echo "<b>ipp_filename.pl failure, check configuration<br></b>\n"; 861 echo "ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>"; 862 echo "NEB_SERVER: $NEB_SERVER<br>"; 863 return; 864 } 858 865 } 859 866 echo "<b>log filename: $filename</b><br>\n";
Note:
See TracChangeset
for help on using the changeset viewer.
