New defines: LOGDIR/EGWDIR/CGIDIR set in Makefile.
[egate.git] / www / wsh.c
index f15ae87..dc9a251 100644 (file)
--- a/www/wsh.c
+++ b/www/wsh.c
  * USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  * $Log: wsh.c,v $
- * Revision 1.8  1995/12/20 16:31:33  adam
+ * Revision 1.9  1996/01/09 10:46:51  adam
+ * New defines: LOGDIR/EGWDIR/CGIDIR set in Makefile.
+ *
+ * Revision 1.8  1995/12/20  16:31:33  adam
  * Bug fix: shell might terminate even though new request was initiated
  * by the cgi interface program.
  * Work on more simple user interface and Europagate buttons.
@@ -97,9 +100,9 @@ int main (int argc, char **argv)
     W_Interp w_interp;
     GW_DB gw_db;
 
-    chdir("/usr/local/etc/httpd/cgi-bin");
+    chdir (EGWDIR);
     gw_log_init (*argv);
-    gw_log_file (GW_LOG_ALL, "/usr/local/etc/httpd/logs/egwsh_log");
+    gw_log_file (GW_LOG_ALL, LOGDIR "/egwsh_log");
     gw_log_level (GW_LOG_ALL);
     gw_log (GW_LOG_STAT, mod, "Europagate www shell: %s", *argv);