From 34b42806c6dbb2f137908d9e35331b139439b66b Mon Sep 17 00:00:00 2001
From: hadaq <hadaq>
Date: Mon, 22 Sep 2003 15:03:45 +0000
Subject: [PATCH] more debug, mt

---
 hadaq/start_agents_parallel_sep03 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadaq/start_agents_parallel_sep03 b/hadaq/start_agents_parallel_sep03
index 61c8781..df20863 100644
--- a/hadaq/start_agents_parallel_sep03
+++ b/hadaq/start_agents_parallel_sep03
@@ -89,7 +89,7 @@ foreach $cur_system (@subSys) {
 	$agent_path = "/home/hadaq/" . $beamTime . "/eb/hadaq_tcl";
     }
 
-    my($exec_command) = "rsh $cpu -l $user_name \"sh -c 'cd; . .bash_profile; cd $agent_path; echo \"DAQSETUP: \\\$DAQ_SETUP\"; type daq_agent; echo \"PWD:\"; pwd; ./daq_agent'\"";
+    my($exec_command) = "rsh $cpu -l $user_name \"sh -c 'cd; . .bash_profile; kill_all_daq_procs; cd $agent_path; echo \"DAQSETUP: \\\$DAQ_SETUP\"; type daq_agent; echo \"PWD:\"; pwd; ./daq_agent'\"";
     print "exec: $exec_command\n";
     system($exec_command);
     print "finished pid:  $PID , cpu: $cpu, subsystem:  $cur_system, command: $exec_command\n";
-- 
2.43.0