Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how start a second shell script

Status
Not open for further replies.

sugram

Technical User
Feb 5, 2021
26
DE
Hello

I have a php script that is executed a shell Script after a click.
That works fine.

is it possible that another shell script is executed after a waiting period?


PHP:
<?php

if ($_GET['run']) {

  $script = "sudo /home/pi/midori-restart.sh";

  $run=`$script`;

}

?>

<style type="text/css">
a { color: #ffffff; text-decoration: none; }
</style>

<a href="?run=true">Display restart</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top