Changeset 39

Show
Ignore:
Timestamp:
07/25/06 11:10:51 (2 years ago)
Author:
jm3
Message:

added detect for install dir

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 10kz/README

    • Property svn:keywords set to Id
  • 10kz/start.sh

    • Property svn:keywords set to Id
    r20 r39  
    11#!/bin/sh 
     2# local webserver startup script 
     3# $Id$ 
     4 
     5root=/Applications/10kz 
    26 
    37process=`ps aux | grep [m]ini | awk '{print $2}'` 
     
    1014fi 
    1115 
    12 /Applications/10kz/webserver/mini_httpd/mini_httpd -p 6667 -d /Applications/10kz/shell/ -c \*.jm3 
     16if [ -d $root ] 
     17then 
     18        $root/webserver/mini_httpd/mini_httpd -p 6667 -d $root/shell/ -c \*.jm3 
     19        sleep 1 
     20        lynx --dump http://localhost:6667/test-cgi.jm3 
    1321 
    14 sleep 1 
    15 lynx --dump http://localhost:6667/test-cgi.jm3 
     22        echo done. 
     23        exit 0 
    1624 
    17 echo done. 
    18 exit 0 
     25else 
     26        echo "Failed; the directory where i expected to find the server ($root) doesn't exist." 
     27        exit 1 
     28fi 
     29 
  • 10kz/stop.sh

    • Property svn:keywords set to Id