Index: /trunk/Ohana/src/opihi/dvo/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/dvo/Makefile	(revision 4690)
+++ /trunk/Ohana/src/opihi/dvo/Makefile	(revision 4691)
@@ -159,5 +159,5 @@
 	rm -f $(HOME)/$*/help/*~
 	rm -f $(HOME)/$*/help/#*
-	cp $(HOME)/$*/help/* $(DESTHLP)/
+	for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
 
 ## -*- makefile -*- 
Index: /trunk/Ohana/src/opihi/mana/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/mana/Makefile	(revision 4690)
+++ /trunk/Ohana/src/opihi/mana/Makefile	(revision 4691)
@@ -111,3 +111,3 @@
 	rm -f $(HOME)/$*/help/*~
 	rm -f $(HOME)/$*/help/#*
-	cp $(HOME)/$*/help/* $(DESTHLP)/
+	for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
Index: /trunk/Ohana/src/opihi/pantasks/LocalJob.c
===================================================================
--- /trunk/Ohana/src/opihi/pantasks/LocalJob.c	(revision 4690)
+++ /trunk/Ohana/src/opihi/pantasks/LocalJob.c	(revision 4691)
@@ -102,6 +102,4 @@
   int result, waitstatus;
 
-  fprintf (stderr, "checking on %d\n", job[0].pid);
-
   /* check local job status */
   result = waitpid (job[0].pid, &waitstatus, WNOHANG);
@@ -137,6 +135,4 @@
 	exit (1);
       }
-      fprintf (stderr, "waited for %d\n", result);
-      
       if (WIFEXITED(waitstatus)) {
 	job[0].state = JOB_EXIT;
Index: /trunk/Ohana/src/opihi/pantasks/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/pantasks/Makefile	(revision 4690)
+++ /trunk/Ohana/src/opihi/pantasks/Makefile	(revision 4691)
@@ -133,3 +133,3 @@
 	rm -f $(HOME)/$*/help/*~
 	rm -f $(HOME)/$*/help/#*
-	cp $(HOME)/$*/help/* $(DESTHLP)/
+	for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
Index: /trunk/Ohana/src/opihi/pclient/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/pclient/Makefile	(revision 4690)
+++ /trunk/Ohana/src/opihi/pclient/Makefile	(revision 4691)
@@ -18,5 +18,5 @@
 LFLAGS  =       -L$(LLIB) -L$(LIB)
 LIBS1   =       -lFITS -lsocket -lnsl -lreadline -ltermcap -lohana -lm
-LIBS2   =       -lbasiccmd -ldatacmd -lshell -ldata
+LIBS2   =       -lbasiccmd -lshell -ldata
 LIBS    =       $(LIBS2) $(LIBS1) 
 CFLAGS  =       $(INCS)
@@ -42,5 +42,4 @@
 libs = \
 $(DESTLIB)/libbasiccmd.a \
-$(DESTLIB)/libdatacmd.a \
 $(DESTLIB)/libshell.a \
 $(DESTLIB)/libdata.a
@@ -112,3 +111,3 @@
 	rm -f $(HOME)/$*/help/*~
 	rm -f $(HOME)/$*/help/#*
-	cp $(HOME)/$*/help/* $(DESTHLP)/
+	for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
Index: /trunk/Ohana/src/opihi/pclient/job.c
===================================================================
--- /trunk/Ohana/src/opihi/pclient/job.c	(revision 4690)
+++ /trunk/Ohana/src/opihi/pclient/job.c	(revision 4691)
@@ -27,9 +27,9 @@
     targv[i-1] = strcreate (argv[i]);
   }
-  targv[i] = 0;
+  targv[i-1] = 0;
 
   pid = fork ();
   if (!pid) { /* must be child process */
-    fprintf (stderr, "starting child process %s...\n", argv[1]);
+    fprintf (stderr, "starting child process %s...\n", targv[0]);
 
     /* close the other ends of the pipes */
@@ -53,4 +53,10 @@
     exit (1);
   }
+
+  /* free temporary arg list */
+  for (i = 0; i < argc - 1; i++) {
+    free (targv[i]);
+  }
+  free (targv);
 
   /* close the other ends of the pipes */
Index: /trunk/Ohana/src/opihi/pclient/pclient.c
===================================================================
--- /trunk/Ohana/src/opihi/pclient/pclient.c	(revision 4690)
+++ /trunk/Ohana/src/opihi/pclient/pclient.c	(revision 4691)
@@ -29,5 +29,4 @@
   /* load the commands used by this implementation */
   InitBasic ();
-  InitData ();
   InitOutfile ();
   InitPclient ();
Index: /trunk/Ohana/src/opihi/pcontrol/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/Makefile	(revision 4690)
+++ /trunk/Ohana/src/opihi/pcontrol/Makefile	(revision 4691)
@@ -18,5 +18,5 @@
 LFLAGS  =       -L$(LLIB) -L$(LIB)
 LIBS1   =       -lFITS -lsocket -lnsl -lreadline -ltermcap -lohana -lm
-LIBS2   =       -lbasiccmd -ldatacmd -lshell -ldata
+LIBS2   =       -lbasiccmd -lshell -ldata
 LIBS    =       $(LIBS2) $(LIBS1) 
 CFLAGS  =       $(INCS) -DHELPDIR_DEFAULT=$(DESTHLP)
@@ -62,5 +62,4 @@
 libs = \
 $(DESTLIB)/libbasiccmd.a \
-$(DESTLIB)/libdatamd.a \
 $(DESTLIB)/libshell.a \
 $(DESTLIB)/libdata.a
@@ -132,3 +131,3 @@
 	rm -f $(HOME)/$*/help/*~
 	rm -f $(HOME)/$*/help/#*
-	cp $(HOME)/$*/help/* $(DESTHLP)/
+	for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
Index: /trunk/Ohana/src/opihi/pcontrol/pcontrol.c
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/pcontrol.c	(revision 4690)
+++ /trunk/Ohana/src/opihi/pcontrol/pcontrol.c	(revision 4691)
@@ -29,5 +29,4 @@
   /* load the commands used by this implementation */
   InitBasic ();
-  InitData ();
   InitOutfile ();
   InitPcontrol ();
Index: /trunk/Ohana/src/opihi/scripts/sched.pro
===================================================================
--- /trunk/Ohana/src/opihi/scripts/sched.pro	(revision 4690)
+++ /trunk/Ohana/src/opihi/scripts/sched.pro	(revision 4691)
@@ -1,4 +1,4 @@
 
-# controller host localhost
+controller host alala
 
 task test
