helloramesh Trusted Contributor.
Trusted Contributor.
112 views

Start or Stop service as per the status.

Hi,

 

I'm trying to create a flow, Which will connect to a a HP-UX server. run the ps -ef |grep -i cron command and if find output of

ps -ef |grep -i cron
    root  2688  4060  0 12:13:04 pts/6     0:00 grep -i cron
    root  2469     1  0 12:11:08 ?         0:00 /usr/sbin/cron

 

Then it sould run the cron stop command like /sbin/init.d/cron stop

 

But if it find

ps -ef |grep -i cron
    root  2688  4060  0 12:13:04 pts/6     0:00 grep -i cron

 

Then it sould run start command   /sbin/init.d/cron start

 

Kindly help.

 

BR,

Labels (1)
0 Likes
1 Reply
Felipe_A_OO Absent Member.
Absent Member.

Re: Start or Stop service as per the status.

You can use the tool found in the Studio installation folder call shell wizard.

 

The shell wizard allow you to connect to a console and record different commands from which you can create the require operations using inputs and comparators.

Regards,
Felipe Alvarado S|SW Technical Support Consultant.
Operation Orchestration
Hewlett-Packard (SSO Portal)


If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.