Changeset 41730
- Timestamp:
- Jul 29, 2021, 2:53:32 PM (5 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 19 edited
-
INSTALL (modified) (2 diffs)
-
Makefile.in (modified) (1 diff)
-
configure.tcsh (modified) (6 diffs)
-
raw/cleanTmpDirectory.php (modified) (1 diff)
-
raw/columns_in_db.php (modified) (1 diff)
-
raw/czartool_exposures.php (modified) (1 diff)
-
raw/czartool_ipptopsps.php (modified) (1 diff)
-
raw/czartool_labels.php (modified) (2 diffs)
-
raw/czartool_servers.php (modified) (1 diff)
-
raw/getimage.php (modified) (1 diff)
-
raw/getlog.php (modified) (1 diff)
-
raw/histogram.php (modified) (1 diff)
-
raw/ipp.php (modified) (1 diff)
-
raw/plotHistogram.php (modified) (1 diff)
-
raw/scatterPlot.php (modified) (1 diff)
-
raw/show_log.php (modified) (1 diff)
-
raw/site.php.in (modified) (1 diff)
-
raw/skycellplot.php (modified) (1 diff)
-
raw/skyplot.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/INSTALL
r41728 r41730 23 23 # The value also needs to match the PATH entry in ~/ippconfig/ippmonitor.config 24 24 25 # Choose an appropriate psconfig (must exist and match PATH in ~/ippconfig/ippmonitor.config) "26 # It also must be built for the same O/S as the install machine "27 # for example: "25 # Choose an appropriate psconfig (must exist and match PATH in ~/ippconfig/ippmonitor.config) 26 # It also must be built for the same O/S as the install machine 27 # for example: 28 28 psconfig ipp-20210708-gentoo 29 29 30 30 # run psconfigure to generate Makefile and raw/site.php 31 # $CZARPLOTDIR and $METRICSPLOTDIR will be generated a link in the same folder as ippMonitor 32 psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 31 # DO NOT check site.php into the svn tree 32 # $CZARPLOTDIR and $METRICSPLOTDIR will be generated as links in the same folder as ippMonitor 33 # the structure of the names for these two directories are defined in Makefile.in 34 psconfigure --htdocs /var/www/localhost/htdocs --wwwbin /var/www/localhost/wwwbin --site ~/ippconfig/ippmonitor.config 33 35 34 # copy these files and modify them (CCL removed CZARPLOTDIR) 36 ## NOTES: 37 ## psconfigure defines the --prefix and related options based on the psconfig system 38 ## The --wwwbin option sets the location of the ippMonitor scripts. 39 ## If not specified here, this defaults to $prefix/wwwbin. 40 ## In order to keep the development and operational systems distinct, it is useful to assign the wwwbin under /var/www 41 ## For an initial installation, you may need to create /var/www/localhost/wwwbin 42 43 # Copy these files and modify them. 44 # config.dat is used to generate the site.php file installed in the htdocs location 35 45 cp config.dat.in config.dat 36 46 37 # for running czarpool.pl,47 # czarconfig.xml is used by czarpool.pl 38 48 cp czartool/czarconfig.xml.in czartool/czarconfig.xml 39 49 … … 42 52 make 43 53 44 # then set gnuplot path for czartool_plots and ippMetrics in ippMonitor dir45 # <path>/var/www/localhost/htdocs/ippMonitor/czartool_plots</path>46 # <savelocation>/var/www/localhost/htdocs/ippMonitor/ippMetrics</savelocation>47 48 54 # czarpoll.pl and roboczar.pl should be launched within 'screen' processes, traditionally 49 55 # named CzarPoll and Roboczar -
trunk/ippMonitor/Makefile.in
r41724 r41730 7 7 RAW = raw 8 8 SCRIPTS = scripts 9 DESTBIN = @ BINDIR@9 DESTBIN = @WWWBIN@ 10 10 DESTWWW = @HTDOCS@/ippMonitor 11 11 CZARPLOTDIR = /export/@HOST2@.0/ipp/czartool_plots -
trunk/ippMonitor/configure.tcsh
r41126 r41730 16 16 set prefix = "" 17 17 set bindir = "" 18 set wwwbin = "" 18 19 set libdir = "" 19 20 set datadir = "" … … 92 93 endif 93 94 breaksw; 95 case --wwwbin* 96 if ("$1" == "--wwwbin") then 97 shift 98 set wwwbin = $1 99 else 100 set wwwbin = `echo $1 | tr = ' ' | awk '{print $2}'` 101 endif 102 breaksw; 94 103 case --libdir* 95 104 if ("$1" == "--libdir") then … … 139 148 echo "prefix: $prefix" 140 149 echo "bindir: $bindir" 150 echo "wwwbin: $wwwbin" 141 151 echo "libdir: $libdir" 142 152 echo "datadir:$datadir" … … 160 170 endif 161 171 172 # BINDIR holds the output binary files 173 if ("$wwwbin" == "") then 174 if ("$prefix" == "") goto usage 175 set wwwbin = $prefix/wwwbin 176 endif 177 162 178 # LIBDIR set the install lib directory 163 179 if ("$libdir" == "") then … … 182 198 # convert Makefile.in to Makefile: 183 199 if (-e Makefile) mv -f Makefile Makefile~ 184 cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1200 cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1 185 201 cat tmp.1 | sed "s|@HOST2@|$hostname2|" > tmp.2 186 cat tmp.2 | sed "s|@BINDIR@|$bindir|" > Makefile 187 rm -f tmp.2 202 cat tmp.2 | sed "s|@BINDIR@|$bindir|" > tmp.1 203 cat tmp.1 | sed "s|@WWWBIN@|$wwwbin|" > Makefile 204 rm -f tmp.1 tmp.2 188 205 189 206 # convert raw/site.php.in to raw/site.php 190 207 if (-e raw/site.php) mv -f raw/site.php raw/site.php~ 191 cat raw/site.php.in | sed "s|@BINDIR@|$bindir|" > tmp.2 208 cat raw/site.php.in | sed "s|@BINDIR@|$bindir|" > tmp.1 209 cat tmp.1 | sed "s|@WWWBIN@|$wwwbin|" > tmp.2 192 210 cat tmp.2 | sed "s|@LIBDIR@|$libdir|" > tmp.1 193 211 cat tmp.1 | sed "s|@PERLLIB@|$libdir|" > tmp.2 … … 232 250 --useMDB2 use MDB2 interface instead of DB 233 251 234 --bindir=DIR user executables [PREFIX/bin/$ARCH] 252 --bindir=DIR IPP main executables [PREFIX/bin] 253 --wwwbin=DIR ippMonitor executables [PREFIX/wwwbin] 235 254 --libdir=DIR object code libraries [PREFIX/lib/$ARCH] 236 255 --datadir=DIR read-only architecture-independent data [PREFIX/share] -
trunk/ippMonitor/raw/cleanTmpDirectory.php
r28608 r41730 14 14 15 15 16 e xec("find /tmp -user apache", $output, $status);16 echo "This function has been deprecated (EAM 2021.07.28)\n"; 17 17 18 echo "<html><body>\n"; 19 echo "Cleaning /tmp file (removing all files belonging to user apache)<br><br>\n"; 20 $count = 0; 21 foreach ($output as $key => $value) { 22 echo "Deleting [$value]<br>\n"; 23 exec("rm -f $value"); 24 $count++; 18 if (0) { 19 exec("find /tmp -user apache", $output, $status); 20 21 echo "<html><body>\n"; 22 echo "Cleaning /tmp file (removing all files belonging to user apache)<br><br>\n"; 23 $count = 0; 24 foreach ($output as $key => $value) { 25 echo "Deleting [$value]<br>\n"; 26 exec("rm -f $value"); 27 $count++; 28 } 29 echo "<br>/tmp cleaned ($count files were deleted)<br>\n"; 25 30 } 26 echo "<br>/tmp cleaned ($count files were deleted)<br>\n";27 31 echo "</body></html>\n"; 28 29 32 30 33 menu_end(); -
trunk/ippMonitor/raw/columns_in_db.php
r39498 r41730 117 117 ); 118 118 119 echo "<b>This script does not do anything but show ingthe current columns in the various db tables</b><br/><br/>";119 echo "<b>This script does not do anything but show the current columns in the various db tables</b><br/><br/>"; 120 120 121 121 foreach ($tableNames as $tIndex => $tableName) { -
trunk/ippMonitor/raw/czartool_exposures.php
r39498 r41730 9 9 10 10 $PATH = getenv("PATH"); 11 putenv("PATH=$ BINDIR:$PATH");11 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 12 12 13 13 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/czartool_ipptopsps.php
r39498 r41730 16 16 17 17 $PATH = getenv("PATH"); 18 putenv("PATH=$ BINDIR:$PATH");18 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 19 19 20 20 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/czartool_labels.php
r41678 r41730 15 15 16 16 $PATH = getenv("PATH"); 17 putenv("PATH=$ BINDIR:$PATH");17 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 18 18 19 19 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); … … 203 203 204 204 // status table at top 205 // XXX hard-wired path: BAD 205 206 exec("svnversion /data/ippc64.1/ippitc/ippMonitor", $svnversion); 206 207 $phpversion = phpversion(); -
trunk/ippMonitor/raw/czartool_servers.php
r39805 r41730 27 27 28 28 $PATH = getenv("PATH"); 29 putenv("PATH=$ BINDIR:$PATH");29 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 30 30 31 31 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/getimage.php
r40434 r41730 20 20 putenv("PERL5LIB=$PERLLIB:"); 21 21 $PATH = getenv("PATH"); 22 putenv("PATH=$ BINDIR:$PATH");22 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 23 23 putenv("NEB_SERVER=$NEB_SERVER"); 24 24 -
trunk/ippMonitor/raw/getlog.php
r13241 r41730 15 15 putenv("PERL5LIB=$PERLLIB:"); 16 16 $PATH = getenv("PATH"); 17 putenv("PATH=$ BINDIR:$PATH");17 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 18 18 19 19 # echo "args: $args<br>"; -
trunk/ippMonitor/raw/histogram.php
r39498 r41730 408 408 //Get environment 409 409 $PATH = getenv("PATH"); 410 putenv("PATH=$ BINDIR:$PATH");410 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 411 411 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); 412 412 putenv("LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/ipp.php
r41126 r41730 829 829 global $NEB_SERVER; 830 830 global $BINDIR; 831 global $WWWBIN; 831 832 global $SITE; 832 833 putenv("PERL5LIB=$PERLLIB:"); 833 834 834 835 $PATH = getenv("PATH"); 835 putenv("PATH=$ BINDIR:$PATH");836 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 836 837 putenv("NEB_SERVER=$NEB_SERVER"); 837 838 -
trunk/ippMonitor/raw/plotHistogram.php
r28601 r41730 17 17 18 18 $PATH = getenv("PATH"); 19 putenv("PATH=$ BINDIR:$PATH");19 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 20 20 21 21 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/scatterPlot.php
r28601 r41730 17 17 18 18 $PATH = getenv("PATH"); 19 putenv("PATH=$ BINDIR:$PATH");19 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 20 20 21 21 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/show_log.php
r37983 r41730 11 11 putenv("PERL5LIB=$PERLLIB:"); 12 12 $PATH = getenv("PATH"); 13 putenv("PATH=$ BINDIR:$PATH");13 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 14 14 15 15 $basename = $_GET[basename]; -
trunk/ippMonitor/raw/site.php.in
r41135 r41730 8 8 $PERLLIB = "@PERLLIB@"; 9 9 $BINDIR = "@BINDIR@"; 10 $WWWBIN = "@WWWBIN@"; 10 11 $LIBDIR = "@LIBDIR@"; 11 12 $SITE = "@SITE@"; 13 14 // $BINDIR : general IPP code needed by ippMonitor 15 // $WWWBIN : ippMonitor programs in scripts are installed here 12 16 13 17 $DBI = "@DBI@"; -
trunk/ippMonitor/raw/skycellplot.php
r34432 r41730 18 18 19 19 $PATH = getenv("PATH"); 20 putenv("PATH=$ BINDIR:$PATH");20 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 21 21 22 22 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); -
trunk/ippMonitor/raw/skyplot.php
r40437 r41730 28 28 29 29 $PATH = getenv("PATH"); 30 putenv("PATH=$ BINDIR:$PATH");30 putenv("PATH=$WWWBIN:$BINDIR:$PATH"); 31 31 32 32 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH");
Note:
See TracChangeset
for help on using the changeset viewer.
