blob: f8e1ef62aa026996b418b39eeac6d50c04bb7e65 [file] [log] [blame]
<!--
Script Description:
A4MCAR Web Interface, This server page calls python script from PHP
Author:
M. Ozcelikors <mozcelikors@gmail.com>, Fachhochschule Dortmund
Disclaimer:
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
http://www.eclipse.org/legal/epl-v10.html
Preliminary Information:
To enable this: sudo visudo ,Add this to the end: "www-data ALL=(ALL) NOPASSWD: ALL"
-->
<?php
$command = $_GET['process'];
$command = "sudo python /var/www/html/scripts/record_driving_command.py ".$command;
$output = @shell_exec($command);
?>