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
- Download the file to /tmp
- Add Command subtask chmod +x /tmp/manipulateDMAgent.shto make the file executable
- 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.