bakalarska_praca/database/app/Http/Controllers/UsersListController.php
2023-05-11 21:57:12 +02:00

17 lines
301 B
PHP
Executable File

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UsersListController extends Controller{
public function listUsersAction(){
$output = shell_exec("python3 list_users_raspberrypi.py | grep Users: | grep -o '\[.*\]'");
return var_dump($output);
}
}