Quantcast
Channel: All Business PCs, Workstations and Point of Sale Systems posts
Viewing all articles
Browse latest Browse all 36019

Re: ThinPro hpdmagent restart HPDM task

$
0
0

Create a text file "ManipulateDMAgent.sh" with below command in it:

#!/bin/sh

sleep 3

/etc/init.d/hpdmagent stop

# you can add more here per needs, like I want to remove the log files: rm –f /etc/hpdmagent/*.log

/etc/init.d/hpdmagent start

 

  1. Download the file to /tmp
  2. Add Command subtask chmod +x /tmp/manipulateDMAgent.shto make the file executable
  3. Add Command subtask /tmp/manipulateDMAgent.shto execute it with WAIT option(in DM template) set to "No"

Note: you might see “bad interpreter” error on ThinPro. Please make sure the .sh file is converted to UNIX (via third party editor or “set ff=unix” locally) before executing it.

 


Viewing all articles
Browse latest Browse all 36019

Trending Articles