IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18987


Ignore:
Timestamp:
Aug 8, 2008, 3:49:25 PM (18 years ago)
Author:
bills
Message:

put all local configuration for the cgi scripts here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/web/request.php

    r18552 r18987  
    1919// BEGIN Local configuration
    2020
    21 $COMMAND_DIR = "XXX";
    22 $WORKDIR = "XXX";
    23 $dsroot = "XXX";
    24 $dbname = "XXX";
     21$WORKDIR = "/export/data1/bills/pstamp/work";
     22
     23$PSCONFDIR = "/export/data0/bills/psconfig";
     24$PSCONFIG  = "debug";
     25$PSBINDIR  = "$PSCONFDIR/$PSCONFIG.linrh64/bin";
     26
     27$dsroot = "/export/data1/datastore/dsroot";
     28$dbname = "gpc1";
    2529
    2630// END Local configuration
    27 //      (actually there is a little bit more in $COMMAND_DIR/pstamp_runcommand.sh )
     31
     32# this script sets up the environment to run IPP commands with current directory
     33# $WORKDIR
     34$SCRIPT    = "$PSBINDIR/pstamp_runcommand.sh $PSCONFDIR $PSCONFIG $WORKDIR";
    2835
    2936// Initialize variables
     
    245252    global $command_line;
    246253    global $dbname;
     254    global $require_class_id;
     255    global $PSCONFDIR, $PSCONFIG, $WORKDIR;
     256    global $SCRIPT;
    247257
    248258    $making_stamps = 1;
    249     $cmd = "pstamp_runcommand.sh pstamp_webrequest.pl";
     259    $cmd = "$SCRIPT pstamp_webrequest.pl";
    250260
    251261    if ($list_checked) {
     
    344354    global $error_line;
    345355    global $command_status;
    346     global $COMMAND_DIR;
    347356
    348357    //    echo "running $command_line\n";
    349358
    350     exec ("$COMMAND_DIR/$command_line", $output_array, $command_status);
     359    exec ("$command_line", $output_array, $command_status);
    351360
    352361    $size = sizeof($output_array);
     
    435444function listJobs($request_id, $jobFinished)
    436445{
    437 
    438     $command_line = "pstamp_runcommand.sh pstamp_listjobs.pl $request_id";
     446    global $WORKDIR;
     447    global $SCRIPT;
     448
     449    $command_line = "$SCRIPT pstamp_listjobs.pl $request_id";
    439450    global $dbname;
    440451    if ($dbname) {
     
    470481    global $outFileset;
    471482    global $dbname;
    472 
    473     $command_line = "pstamp_runcommand.sh pstamptool -listreq -req_id $request_id -simple";
     483    global $SCRIPT;
     484
     485    $command_line = "$SCRIPT pstamptool -listreq -req_id $request_id -simple";
    474486    if ($dbname) {
    475487        $command_line .= " -dbname $dbname";
Note: See TracChangeset for help on using the changeset viewer.