# Issue with alert action

**URL:** <https://community.simple-help.com/t/issue-with-alert-action/505>\
**Category:** Alerts and Toolboxes\
**Created:** [June 10, 2020, 5:21pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505 "2020-06-10T17:21:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_D](https://community.simple-help.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mike\_D](https://community.simple-help.com/u/Mike_D)\
**Post date:** [June 10, 2020, 5:21pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/1 "2020-06-10T17:21:41Z")

</div>

Hello everyone,

I am trying to restart a Win Svc with an alert action and it fails with:

Cannot run program: cmd. Code error =2. No such file or directory

My alert action:  
c:\Windows\System32\cmd.exe /c “sc start svc\_name”

also tried cmd /c, cmd.exe /c etc…

Same command runs on server without any issues  
I am on 5.2.11

Any ideas?  
Thanks

---

<div class="post-metadata">

**Author:** ![Darrell\_Swafford](https://community.simple-help.com/user_avatar/community.simple-help.com/darrell_swafford/32/82_2.png) [@Darrell\_Swafford](https://community.simple-help.com/u/Darrell_Swafford)\
**Post date:** [June 10, 2020, 6:15pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/2 "2020-06-10T18:15:03Z")

</div>

what version of windows? maybe try:  
net start svc\_name

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://community.simple-help.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mike\_D](https://community.simple-help.com/u/Mike_D)\
**Post date:** [June 10, 2020, 6:26pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/3 "2020-06-10T18:26:31Z")

</div>

Hi Darrell,

Win 2008 Std SP2.  
Tried sc, net , same error. Code error =2. No such file or directory

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://community.simple-help.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mike\_D](https://community.simple-help.com/u/Mike_D)\
**Post date:** [June 10, 2020, 11:50pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/4 "2020-06-10T23:50:16Z")

</div>

Exact same error on Win 2012 R2

---

<div class="post-metadata">

**Author:** ![Darrell\_Swafford](https://community.simple-help.com/user_avatar/community.simple-help.com/darrell_swafford/32/82_2.png) [@Darrell\_Swafford](https://community.simple-help.com/u/Darrell_Swafford)\
**Post date:** [June 11, 2020, 1:02pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/5 "2020-06-11T13:02:32Z")

</div>

Thats odd. Make sure to contact support. I cant duplicate it. Actually I cant get it to give me any error.  
I am running simplehelp 5.2.11 What version are you on?

In your alert are you running a command or a toolbox?

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://community.simple-help.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mike\_D](https://community.simple-help.com/u/Mike_D)\
**Post date:** [June 11, 2020, 1:55pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/6 "2020-06-11T13:55:52Z")

</div>

Hi Darrell,

I am on 5.2.11 as well, but running on a Linux box

Alert action : command.  
If I run a tool box with the same command all is working

11/06 13:45:36.669: M594-10 13:45:36.669 (+ 0) [LoggingFramework] Executing command ‘[sc, start, fax]’  
11/06 13:45:36.672: M594-10 13:45:36.672 (+ 3) [LoggingFramework] Target ‘LocatedAlertAbstractTarget’ failed to log event ‘LocatedAlertLogEvent’: Cannot run program “sc”: error=2, No such file or directory

11/06 13:45:36.672: M594-10 13:45:36.672 (+ 0) java.io.IOException: Cannot run program “sc”: error=2, No such file or directory

---

<div class="post-metadata">

**Author:** ![Darrell\_Swafford](https://community.simple-help.com/user_avatar/community.simple-help.com/darrell_swafford/32/82_2.png) [@Darrell\_Swafford](https://community.simple-help.com/u/Darrell_Swafford)\
**Post date:** [June 11, 2020, 2:23pm UTC](https://community.simple-help.com/t/issue-with-alert-action/505/7 "2020-06-11T14:23:24Z")

</div>

> [@Mike\_D](#):
>
> ‘[sc, start, fax]’

Odd that it put commas in between the command.

I am running the server on linux as well.

Definitely contact support with your logs.
