Issue reboot command of ESP via Bash

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Oyvindes
New user
Posts: 5
Joined: 28 Oct 2015, 09:15

Issue reboot command of ESP via Bash

#1 Post by Oyvindes » 12 May 2017, 08:26

As the topic says, is this possible?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Issue reboot command of ESP via Bash

#2 Post by Shardan » 12 May 2017, 10:21

Hello,

it is possible to send a http command from the bash shell.

Code: Select all

string stdout;
string stderr;
system.Exec("wget -O /dev/null -q http://<ip of your device>/?cmd=reboot",&stdout, &stderr);
Another possibility is using php to send the command.

a php command for this might be:

Code: Select all

file_get_contents("http://<ip of your device>/?cmd=reboot");
Regards
Shardan
Regards
Shardan

raptor
Normal user
Posts: 25
Joined: 25 Oct 2016, 10:39
Location: Montana / Bulgaria

Re: Issue reboot command of ESP via Bash

#3 Post by raptor » 12 May 2017, 10:24

Regards from Bulgaria.
raptor

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 98 guests