title: puppet exec command issue
body: <p>Below is my puppet code ,It is killing the process in agent  but showing the error code</p>
  
  <pre><code>exec { "restart_process":
      command =&gt; "ps -ef | grep nrpe | grep -v pts/1 | /bin/awk '{print $2}' | xargs kill -9",
      path =&gt; ['/usr/bin', '/sbin', '/bin', '/usr/sbin'],
      subscribe =&gt; File["/root/Backup/deploy"],
      refreshonly =&gt; true,
  }
  </code></pre>
  
  <p><strong>Error code:</strong></p>
  
  <pre><code>Info: Computing checksum on file /root/Backup/deploy/nrpe.sh
  Info: /Stage[main]/Myfile/File[/root/Backup/deploy/nrpe.sh]: Filebucketed /root/Backup/deploy/nrpe.sh to puppet with sum   136c6013774f5dfb84943718a70b36e0
  Notice: /Stage[main]/Myfile/File[/root/Backup/deploy/nrpe.sh]/content: content 
  changed '{md5}136c6013774f5dfb84943718a70b36e0' to '{md5}c4fc9099405a108923ad18f7e2db13c8'
  Info: /root/Backup/deploy: Scheduling refresh of Exec[restart_process]
  Error: /Stage[main]/Myfile/Exec[restart_process]: Failed to call refresh: ps -ef | grep nrpe | grep -v pts/1 | /bin/awk '{print }' | xargs kill -9 returned  instead of one of [0]
  Error: /Stage[main]/Myfile/Exec[restart_process]: ps -ef | grep nrpe | grep -v pts/1 | /bin/awk '{print }' | xargs kill -9 returned  instead of one of [0]
  Notice: Finished catalog run in 1.56 seconds
  </code></pre>
  
  <p>Can any body help me</p>