blob: f8e1ef62aa026996b418b39eeac6d50c04bb7e65 [file] [log] [blame]
Script Description:
A4MCAR Web Interface, This server page calls python script from PHP
M. Ozcelikors <>, Fachhochschule Dortmund
Copyright (c) 2017 Eclipse Foundation and FH Dortmund.
All rights reserved. This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
Preliminary Information:
To enable this: sudo visudo ,Add this to the end: "www-data ALL=(ALL) NOPASSWD: ALL"
$command = $_GET['process'];
$command = "sudo python /var/www/html/scripts/ ".$command;
$output = @shell_exec($command);