Added pcp config file to Command args.
This commit is contained in:
parent
1e9828c35b
commit
410a6ef1fa
3 changed files with 6 additions and 6 deletions
|
@ -17,8 +17,8 @@ import (
|
|||
func Start(quit chan struct{}, logging *bool, logMType chan elekLogDef.LogMessageType,
|
||||
logMsg chan string, pcpConfigFile string, s scheduler.Scheduler) {
|
||||
baseSchedRef := s.(*schedulers.BaseScheduler)
|
||||
const pcpCommand string = "pmdumptext -m -l -f '' -t 1.0 -d , -c " + pcpConfigFile
|
||||
cmd := exec.Command("sh", "-c", pcpCommand)
|
||||
const pcpCommand string = "pmdumptext -m -l -f '' -t 1.0 -d , -c "
|
||||
cmd := exec.Command("sh", "-c", pcpCommand, pcpConfigFile)
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
|
||||
|
||||
pipe, err := cmd.StdoutPipe()
|
||||
|
|
Reference in a new issue